Reputation: 1121
I am working on elastic stack and i've running server of elasticsearch and logstash and for further process as described in documentaion this link https://www.elastic.co/guide/en/logstash/current/advanced-pipeline.html
And now when i am trying to execute this command:
sudo ./filebeat -e -c filebeat.yml -d "publish"
I am getting this error:
Exiting: error loading config file: config file ("filebeat.yml") must be owned by the beat user (uid=0) or root
i have changed the permissions for that file but unable to resolve this error, please help
Upvotes: 1
Views: 6004
Reputation: 1
It is also possible to disable strict permission checks but it is not recommended.
You can disable strict permission checks from the command line by using -strict.perms=false
, but we strongly encourage you to leave the checks enabled.
https://www.elastic.co/guide/en/beats/libbeat/5.3/config-file-permissions.html
Upvotes: 0
Reputation: 1551
Try changing permissions with these to make sure:
sudo chown root ./filebeat/filebeat.yml
sudo chmod go-w ./filebeat/filebeat.yml
Upvotes: 6