I have configured filebeat to send logs to logstash followed by logstash sending logs to elasticsearch.
All worked fine .. i could see logstash-* and filebeat-* data getting updated in kibana .. until i enabled x-pack security.
After giving user creds in logtash.conf, i can see the logstash data appear but none appears in filebeat.
My problem looks similar to Kibana not updating indices after X-Pack installed - #2 by TimV
so i followed the steps mentioned in the article link provided in the topic - Beats and Security | X-Pack for the Elastic Stack [6.2] | Elastic
But that did not help.
Also, following Logstash Reference [8.11] | Elastic , placing username and password in input and filter fields results in config errors for me.
Any suggestions?
filebeat.yml (cannot see filebeat-* data in kibana)
----------------------------- Logstash output --------------------------------
output.logstash:The Logstash hosts
hosts: ["localhost:5044"]
index: "filebeat"
username: "filebeat_internal"
password: "changeme"
logstash.conf (can see logstash-* data in kibana but in syslog format instead of json
input {
beats {
port => 5044
codec => json
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}"}
}
}
output {
elasticsearch {
hosts => "localhost:9200"
user => "elastic"
password => "changeme"
}
}
- though elastic being a superuser does not make filebeat work either.