Cat logs in when using logstash as service

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.

1 Like