<p>I am currently working on the ELK setup for my Kubernetes clusters. I set up logging for all the pods and fortunately, it's working fine.</p>

<p>Now I want to push all terminated/crashed pod logs (which we get by describing but not as docker logs) as well to my Kibana instance.</p>

<p>I checked on my server for those logs, but they don't seem to be stored anywhere on my machine. (inside /var/log/)
maybe it's not enabled or I might not aware where to find them.</p>

<p>If these logs are available in a log file similar to the system log then I think it would be very easy to put them on Kibana.</p>

<p>It would be a great help if anyone can help me achieve this.</p>

vivek
<p>You need to use kube-state-metrics by which you can get all pod related metrics. You can configure to your kube-state-metrics to connect elastic search. It will create an index for a different kind of metrics. Then you can easily use that index to display your charts/graphs in Kibana UI.</p>

<p><a href="https://github.com/kubernetes/kube-state-metrics" rel="nofollow noreferrer">https://github.com/kubernetes/kube-state-metrics</a></p>
