Issue
I am running following command
$ chown -R logstash.logstash /usr/share/logstash
$ chmod 777 /usr/share/logstash/data
chown: changing ownership of '/var/log/logstash': Operation not permitted
Can anyone pls help!
Solution
You need to run these commands with sudo
for ex
$ sudo chown -R logstash.logstash /usr/share/logstash
$ sudo chmod 777 /usr/share/logstash/data
Read more about sudo
Answered By - Amit Answer Checked By - Mary Flores (WPSolving Volunteer)