I configured LS_USER="root" and LS_GROUP="root" parameters in two places "etc/default/logstash" and "etc/logstash/startup.options". When I start with command "sudo service logstash start" it is starting with logstash user.
The reason I am changing this is it is difficult to give file permissions to all log files which are necessary. So i thought of starting logstash as root so that it can have access to all of them.
Can anyone please suggest alternatives or better solutions?