I want to call a shellscript, when the logstash is done with sending file to ElasticSearch.
I have tried "done_do: '/my_script.sh'" but it dint worked for me me.
Any guidance will be appreciated.
Regards
Aman
I want to call a shellscript, when the logstash is done with sending file to ElasticSearch.
I have tried "done_do: '/my_script.sh'" but it dint worked for me me.
Any guidance will be appreciated.
Regards
Aman
This isn't possible. The file input is meant to continuously monitor the files so it's never done.
What you can do is monitor the sincedb file to see when Logstash's current position is equal to the size of the file.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.