File Beat is unable to send logs from a particular folder, This is the application logs folder.
Things that have been tried :
- Created a new topic in kafka to retest the settings.
- Checked for file permission for the folder and the file to send.
- Updated to the filebeats to 6.7 from 5.5
- changed from filebeat.prospector to filebeat.inputs
Running Configuration
filebeat.inputs:
- type: log
paths:
- /var/log/containers/*.log
fields_under_root: true
output.kafka:
hosts: ["10.0.0.0:9092"]
topic: "testtopic"
codec.json:
pretty: true
With this i am able to see all the logs in "testtopic"
Not running Configuration :
filebeat.inputs:
- type: log
paths:
- /app/log/server/*.log
fields_under_root: true
output.kafka:
hosts: ["10.0.0.0:9092"]
topic: "testtopic"
codec.json:
pretty: true
Expected Results : Logs from the path /app/log/server/*.log should be sent to Kafka