how can we cat/redirect logs when using logstash as service.?
I am not able to locate the command to cat logs as input while running logstash as service.
similar to cat filename|bin/logstash -f logstash-syslog.conf
how can we cat/redirect logs when using logstash as service.?
I am not able to locate the command to cat logs as input while running logstash as service.
similar to cat filename|bin/logstash -f logstash-syslog.conf
You may be able to use exec to invoke this, but it seems a bit loopy.
Logstash's stdin input shuts down Logstash when it encounters EOF so it's possible. What's the scenario? If you want to do one-shot processing of files I don't see the point of running Logstash as a service.
© 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.