title: How to get the logs of an application from one container into another container in kubernetes
body: <p>We are planning to implement Kubernetes application monitoring using Prometheus. Our application is running in apache and deployed to kubernetes cluster. We are developing Custom Apache exporter which will run in same POD as my application container &amp; gather metrics from apache and push them to Prometheus. As part of this monitoring we need to parse access.log in apache to get number of 2xx, 3xx,4xx &amp; 5xx requests. But Our application that is deployed in Kubernetes doesnt store any logs inside the POD, but it logs to STDOUT. So I can access logs from kubectl logs command. Now my Apache exporter that I am building is hosted in same POD as my application container. Now my question is How can i get application logs (access.log) to be present/accessible to  my apache exporter container, so that I can parse the logic and comeup with metrics like number of 2xx,3xx,4xx &amp; 5xx.</p>