My plan is to attach volume in filebeat daemon as /var/log/app
and same volumes in all app containers.
Each container will write logs in /var/log/app/$container_id folder
questions:
is my plan ok? or there is better solutions?
can I expose folder ($container_id) name as additional parameter when sending logs?
if daemon and 3 nodes in cluster then 3 filebeat instances all reading from 1 volumn - could be a problem, and daemon will have root access to node but not pods files as far ias i know - my testing
daemon runs one per instance not a container
so If have 3 instances and 3 containers up on each instance in cluster - total 9 containers
I will have 3 filebeat instances each have own volume mounted to host directory
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.