This is my filebeat.yml and it is not harvesting the logs from the defined file path-
filebeat.inputs:
- type: log
enabled: true
paths:
-/home/mehak/Documents/filebeat-7.4.0-linux-x86_64/logs/log2.log
fields:
type: other
fields_under_root: true
output.logstash:
hosts: ["localhost:5044"]
index: "logstash-%{[beat.version]}-%{+yyyy.MM.dd}"
When I run in debug mode, I see this to confirm no file is harvested-
filebeat":{"harvester":{"open_files":0,"running":0}}
Please help!