Filebeat : harvester setup failed: unexpected file opening error

I am sending a data from file beat to Logstash. File beat is throwing an error -
harvester setup failed: unexcepted file opening error? I am reading files from a directory like this example -

filebeat.inputs:

  • type: log
    enabled: true
    paths:
    • /var/log/*.log

Can anyone suggest a solution?

@Mayurbiw, Can you please provide your filebeat.yml configuration? That will be more helpful.

Please provide configuration in formatted way.

Thanks.