Config file ownership and permissions- Filebeat


(Shatakshi Shukla) #1

Filebeat Configuration

shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$ vi filebeat.yml shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$ sudo ./filebeat -e -c filebeat.yml -d "publish" Password: Exiting: error loading config file: config file ("filebeat.yml") must be owned by the beat user (uid=0) or root shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$ chown 501 filebeat.yml shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$ sudo ./filebeat -e -c filebeat.yml -d "publish" Exiting: error loading config file: config file ("filebeat.yml") must be owned by the beat user (uid=0) or root shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$ chown 0 filebeat.yml chown: filebeat.yml: Operation not permitted shatakshis-MacBook-Air:filebeat-6.2.4-darwin-x86_64 shatakshishukla$

shows operation denied


(ruflin) #2

What is the question? The error message explains it pretty well:

 error loading config file: config file ("filebeat.yml") must be owned by the beat user (uid=0) or root 

(Shatakshi Shukla) #3

Thanks for the consideration

It would be of great help if you could help me with this .


(ruflin) #4

As it states in the error message, you need to change the owner of the file.


(Shatakshi Shukla) #5

How ?


(ruflin) #6

Best use chown


(system) #7

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.