title: permission error while working with logstash with filebeat
body: <p>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 <a href="https://www.elastic.co/guide/en/logstash/current/advanced-pipeline.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/logstash/current/advanced-pipeline.html</a></p>
  
  <p>And now when i am trying to execute this command:</p>
  
  <pre><code>sudo ./filebeat -e -c filebeat.yml -d "publish"
  </code></pre>
  
  <p>I am getting this error: </p>
  
  <pre><code>Exiting: error loading config file: config file ("filebeat.yml") must be owned by the beat user (uid=0) or root
  </code></pre>
  
  <p>i have changed the permissions for that file but unable to resolve this error, please help</p>