"Do something" when the file is done being read

(aman sachdeva) #1

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.


(Magnus B├Ąck) #2

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.

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.