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
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
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
input {
beats {
port => 5044
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
#user => "elastic"
#password => "changeme"
}
}