I installed and configured ELK in a CentOS environment.
I have been using the following command to run logstash in the foreground and it works perfectly.
./usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf
Now I want to implement it into the production environment and hence I would like to run the logstash service in the background by which I did tried to run it with
systemctl start logstash
As usual, I always check with the indices with
But logstash doesn't seem to work if I am not running it in the foreground and there's also no log generated as well if I run with systemctl start logstash.
Another thing is that I have also made some changes to the default logstash.yml file to increase the batch.size, batch.delay and etc but logstash doesn't capture the changes when I run ./usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf.
I have been trying to solve this for the past few days and I need help on this. Thank you so much.