How to stop main pipeline anter data is inserted in elasticsearch

hi

How can i stop the main pipeline from the logstash script after data get inserted from the text file to the elastic index

so that i can again run the logstash script

How can i stop the main pipeline from the logstash script after data get inserted from the text file to the elastic index

There's nothing built in for this (unless you use the stdin input) but see Logstash parsing progress bar - Stack Overflow.

so that i can again run the logstash script

Why do you want to repeatedly stop and restart Logstash? What's your use case?

yes according to my buisness requirement

so i can insert data in elasticsearch close it
then delete text file
again for new text file
then again start the logstash script

I find it hard to believe that the business requirements really state that you need to stop and restart Logstash for each file.

What are the real requirements? That the files have to be processed in a particular order?

can we use close_older tag to terminate the script in input

Feel free to use that option (it's harmless) but it has nothing to do with the questions you're asking.

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