Trying to troubleshoot issue with filebeat outputting to logstash. Determined it is a config issue, though cannot determine where the config issue lies. the filebeat.yml passes yaml lint, configtest, and is showing in debug logs that it is outputting events to logstash. It is however not getting to logstash server. Verified it's not a network issue by performing telnet to logstash node.
Putting my created config below. generated via Chef and Ruby, so just missing a nested field somewhere. if obvious let me know so I can adjust my generator method.
Interesting. So you were actually receiving the events in logtstash? Ours are not being pushed out. First thought was that it was a port issue, but telnet ipaddress port_number does work from the filebeat machine.
Maybe it is related to logstash version causing issues? Our version is 2.1.1, so not sure if that would affect things.
Yes, I was receiving the events in Logstash and they were being logged to the console. Did you try running with the simple Logstash config I provided ($ bin/logstash -f simple.conf)?
I used Logstash 2.2.2 for the test I ran, but it should work for 2.1.
moving fields_under_root two spaces over apparently worked. Just double checked kibana and it is sending logs real time. No explanation why that affected it, but it's the only thing that has changed.
Glad you got things working. That is odd, because I tested with fields_under_root as you originally posted, and it simply showed up as any other field in the output like ktopic and fwder.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.