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.
- 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
- 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 }
}