# Kibana

Enable and start Kibana:

```
sudo systemctl enable kibana
sudo systemctl start kibana
```

```
# Start the Wazuh Dashboard:

sudo systemctl enable wazuh-dashboard
sudo systemctl start wazuh-dashboard

```

```
sudo systemctl restart wazuh-manager
```

**wazuh agent**

```
sudo systemctl restart wazuh-agent
sudo systemctl enable wazuh-agent
```

**Kibana**

Change localhost to **0.0.0.0 from kibana.yml**

```
sudo nano /etc/kibana/kibana.yml

```

```
server.host: "localhost"

```

```
server.host: "0.0.0.0"
```

```linker-script
http://<your-server-ip>:5601
```

```
sudo systemctl restart kibana
```

Elastic search

```
sudo /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token --scope kibana
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FFmSjkXRyuUodhaXTYsXO%2Fimage.png?alt=media&#x26;token=10375c1f-bda4-44a1-91dd-eafb49e1669b" alt=""><figcaption></figcaption></figure>

```bash
bin/elasticsearch-create-enrollment-token --scope kibana
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FHsOXGZ77drZvCXCpKGRM%2Fimage.png?alt=media&#x26;token=af2c935e-4647-4eb6-9044-84a03e3eedeb" alt=""><figcaption></figcaption></figure>

Now let's login the portal.&#x20;

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FI9ywk059JBjYtzLWE3nm%2Fimage.png?alt=media&#x26;token=bc9a70e7-039e-45a3-9851-19a7e88fcd08" alt=""><figcaption></figcaption></figure>

I don't know password, now time to set.

```bash
sudo ./elasticsearch-reset-password -u elastic
```

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FRQF7lKi4KnYlh0lZkOMK%2Fimage.png?alt=media&#x26;token=541f8f8a-ee26-4029-9254-61b2d9b07186" alt=""><figcaption></figcaption></figure>

username: elastic

password: \*\*\*\*\*\*

<figure><img src="https://3155059101-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftpxp8dhlubc3j58Iygn5%2Fuploads%2FFd8fjSlrKFKeOXbcSYyR%2Fimage.png?alt=media&#x26;token=1f8fc85b-9469-4027-b865-89501512ed5d" alt=""><figcaption></figcaption></figure>

```
```
