'permission error while working with logstash with filebeat
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
Solution 1:[1]
Try changing permissions with these to make sure:
sudo chown root ./filebeat/filebeat.yml
sudo chmod go-w ./filebeat/filebeat.yml
Solution 2:[2]
It is also possible to disable strict permission checks but it is not recommended.
Disabling Strict Permission Checks
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | K41F4r |
| Solution 2 | Ahmed Gad |
