I'm using filebeat to ship logs to logstash, and I want to know when it has finished shipping logs.
Is there a way to check when:
a) Filebeat has finished reading the log file (it's a static file, meaning it doesn't change or grow) and finished shipping
OR
b) Logstash has stopped receiving data from filebeat? (Assuming I don't have a network problem)
as for a), Filebeat is designed to continuously read a file and does not "shutdown" when the file is finished as it expects new lines coming in. You might be able to see it has stopped reading a file in the logs if you up the logging level.
for b), since 5.0 Logstash has an API and you should be able to use the _node/stats/pipeline API to see when no more events are coming in.
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.