I am using Logstash 5.4.1.
I need to execute one of my logstash script only once.
I don't want logstash thread to run in background. I want to use logstash script like a batch.
Once thread reach end of the file in input file. It should terminate automatically.
Can someone help me with that?
Note: my input is some data file and output is elasticsearch.
I tried with this syntax. But it didn't work.
/logstash.bat -f myconf.conf < testLog.log
I need to read one file which has data. Then post it to Elasticsearch.
Once Logstash reach end of the file, logstash thread should terminate.
It should not keep running.
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.