I was trying out different things with logstash while starting it from command line using
sudo /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/config.conf
Everything worked fine there. I would like to use logstash as a service in the long term.
When no logs showed up I looked up the status using
sudo service logstash status
I noticed that logstash was restarting every 30s because of the line:
Active: active (running) since .....; 15s ago
The time at the end of the line never exceed 30s.
When I tried to look at the logstash logs I noticed that "ls /var/log/logstash" returns absolutely nothing even though I have "path.logs: /var/log/logstash" in my logstash.yml
Any ideas would be appreciated,