We are running filebeat:8.1.3 as a docker container using docker-compose file in Linux RHEL machine.
We have provided the input type as filestream and provided the path for log files , but still it is not injecting any logs not displaying logs in Kibana.
Could you please help on this?
Filebeat.yml as below:
-type: filestream
id: test
enabled: true
paths:
- /var/elk/test.log
Hi @Anagha_nambiar Please do not @ mention people directly in a thread that are not already in the thread, asking for help directly it is not community etiquette.
This is a docker mounting issue ... much like in your last question about metricbeat you will need to bind mount the host file system that you want to collect logs from.
A docker container can not see the host filesystem unless you bind mount it.
So mount the top filesystem path / and then list the paths individually or with * just like you would have to do if filebeat was just running directly on the host...
You will still need to list the paths... no other way to do it something like.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.