Logstash 6.2.0 - Won't Start & How I fixed it

RHEL 7 Linux
Logstash-6.2.0
X-Pack installed = Yes

I had all kinds of interesting errors starting and sending information to Elasticsearch. Here are the things I changed.

  1. Update logstash.yml and add the following.

xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.url: http://x.x.x.x:9200
xpack.monitoring.elasticsearch.username: elastic_user
xpack.monitoring.elasticsearch.password: password

  1. In the output section of your .conf, be sure to add the elastic_user and password.

input { stdin { } }
output {
elasticsearch { hosts => ["x.x.x.x:9200"] user=> elastic_user password => password}
stdout { codec => rubydebug }
}

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