Logstash Docker to write Logstash internal logs /usr/share/logstash/logs

Currently docker logs to stdout. I need to write to /usr/share/logstash/logs.

 cat logstash.yml 
path.logs: /usr/share/logstash/logs

logstash.yml is in /usr/share/logstash/config.

I trigger logstash from command line

/usr/share/logstash/bin/logstash -f /usr/share/logstash/conf.d/ -w 2 --path.settings=/usr/share/logstash/config ```

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