I want to ask that, below is my code. With the below code logstash reads the file until its end. Then it is stops reading but process is still alive. I want that process stops when it finishes the reading. How can i do this ?
A file input will continue to tail the file, waiting for additional log messages to be written to it. It will not terminate the process.
There are a few inputs that will terminate the logstash process when they finish reading. For example, if you cat the file into a stdin input then when it reaches EOF it will terminate logstash.
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.