I am new to ELK and Filebeat.
I have ELK stack running on one server using docker-compose.
I have Filebeat running on another server as docker container 7.14.1.
I have configured filebeat-docker.yml and I can see some logs at the Kibana dashboard which are coming within the containers.
My question here is as I am running filebeat as a container, however I wanted to collect the application and system logs which are running on host not on the container. As the application running on host on which filebeat running as a docker container
Is it possible? if yes, can you please guide/suggest me how to achieve it?
Generally you would install Filebeat directly on the host, that way you can monitor the host and any other containers it runs. Running Filebeat in a container and monitoring the underlying host is possible, you just need to make sure it has the relevant local filesystem points mounted inside the container.
Let me try mounting the log path as volume in the filebeat container. Just to cross check, I will be executing the following command to mount the volumes.
Hopefully is the correct way to do it. Please correct me if I am wrong.
@warkolm I can see the volumes have been mounted by executing the above command. However, I am not getting that data in the Kibana dashboard.
I am referring log.file.path in kibana dashboard. I can see only /var/lib/containers.
Following info I am getting in filebeat logs. INFO [input.harvester] log/harvester.go:340 File is inactive. Closing because close_inactive of 5m0s reached.
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.