Recently i started working on log forwarding to Kibana / ES and Apache NiFi thru logstash-forwarder and i am successfully finished the same. But, i came to know logstash-forwarder is deprecated and Filebeat is replacement of logstash-forwarder.
I configured logstash-forwarder with 50011 port which is enabled on ListenLumberjack processor inside NiFi. It reads all the logs and then it keeps them into ES and as well as into any DB. But, I am unable to forward the logs to any TCP (50011) ports from Filebeat. If so, i can stop using logstash-forwarder. Can someone please let me know is there any way to send the logs to Apache NiFi lumberjack with Filebeat ?
My current Flow :
Logstash-forwarder -> reads log files from system/apache -> sends -> NiFi ListenLumberjack (50011) -> Reads the logs -> Transforms the logs to -> Elasticseach & NiFi PutSQL processor.
Expecting Flow :
Filebeat -> reads log files from system/apache -> sends to -> NiFi ListenLumberjack (50011) -> Reads the logs -> Transforms the logs to -> Elasticseach & NiFi PutSQL processor.
Can you post your LSF and Filebeat configs? The NiFI ListenLumberjack implementation is something outside our control, so it could be that it's incompatible with Filebeat. OTOH, Filebeat uses pretty much the same protocol, so maybe it's just a configuration issue.
Did take some more time to read over the NiFi Lumberjack plugin. Unfortunately the implementation of NiFi only supports LSF, but not beats.
Similarly the way we call output to logstash and file, can we pass it to TCP ? If so, can i use it like below ?
output.tcp:
hosts: [ "localhost:50011" ]
There is no output.tcp module in beats. TCP is missing on purpose, as with plain TCP we don't get any kind of good ACK telling us how far the receiving application has successfully consumed the lines published by filebeat.
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.