# Can't setup kibana dashboards for Beats

**URL:** <https://discuss.elastic.co/t/cant-setup-kibana-dashboards-for-beats/221625>\
**Category:** Beats\
**Created:** [March 2, 2020, 6:38am UTC](https://discuss.elastic.co/t/cant-setup-kibana-dashboards-for-beats/221625 "2020-03-02T06:38:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbhaxor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbhaxor/32/63588_2.png) [@tbhaxor](https://discuss.elastic.co/u/tbhaxor)\
**Post date:** [March 2, 2020, 6:38am UTC](https://discuss.elastic.co/t/cant-setup-kibana-dashboards-for-beats/221625/1 "2020-03-02T06:38:50Z")

</div>

I want to send my data from beats to elasticsearch via logstash, also I want to configure the kibana dashboards for the same

So, in beats config, I have only added hosts for kibana and logstash. After doing this I can't set up my dashboard

```python
Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://someprivateip:5044: Get http://someprivateip:5044: read tcp 192.168.1.159:58162->someprivateip:5044: wsarecv: An existing connection was forcibly closed by the remote host.]

```

However, the ports are already opened in my server

```auto
root@soc:~/iptables# netstat -tunlpa | grep 5044
tcp6 0 0 :::5044 :::* LISTEN 5100/java           
root@soc:~/iptables# netstat -tunlpa | grep 9600
tcp6 0 0 :::9600 :::* LISTEN 5100/java           
root@soc:~/iptables# 

```

My beats configuration for logstash

```auto
input {
  beats {
    port => 5044
  }
}

output {
  elasticsearch {
    hosts => ["http://localhost:9200"]
    index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
    #user => "elastic"
    #password => "changeme"
  }
}

```

---

<div class="post-metadata">

**Author:** ![tbhaxor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbhaxor/32/63588_2.png) [@tbhaxor](https://discuss.elastic.co/u/tbhaxor)\
**Post date:** [March 2, 2020, 12:46pm UTC](https://discuss.elastic.co/t/cant-setup-kibana-dashboards-for-beats/221625/2 "2020-03-02T12:46:56Z")

</div>

Ok this was because of a bug (i havent commeneted elasticsearch configuration in output).

So now after fixing it and running `auditbeat.exe setup`, I am getting following error

```auto
Exiting: Index management requested but the Elasticsearch output is not configured/enabled

```

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [March 2, 2020, 12:59pm UTC](https://discuss.elastic.co/t/cant-setup-kibana-dashboards-for-beats/221625/3 "2020-03-02T12:59:05Z")

</div>

Hey @tbhaxor,

To configure dashboards, Beats only need access to Kibana, for that you can run `auditbeat setup --dashboards`.

For other steps of the setup, Beats need direct access to Elasticsearch, if you want to setup also ILM you will need to run at least once `auditbeat setup` with auditbeat configured with Elasticsearch as output.

If nothing works for you, could you please share your auditbeat configuration, and the version you are using?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 31, 2020, 1:49pm UTC](https://discuss.elastic.co/t/cant-setup-kibana-dashboards-for-beats/221625/5 "2020-03-31T13:49:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
