# Fetch application logs running on kubernetes using filebeat

**URL:** <https://discuss.elastic.co/t/fetch-application-logs-running-on-kubernetes-using-filebeat/247075>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 1, 2020, 10:26am UTC](https://discuss.elastic.co/t/fetch-application-logs-running-on-kubernetes-using-filebeat/247075 "2020-09-01T10:26:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shefali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shefali/32/63414_2.png) [@Shefali](https://discuss.elastic.co/u/Shefali)\
**Post date:** [September 1, 2020, 10:26am UTC](https://discuss.elastic.co/t/fetch-application-logs-running-on-kubernetes-using-filebeat/247075/1 "2020-09-01T10:26:17Z")

</div>

I am trying to find proper solution but haven't got any.  
My java application is running on kubernetes and creating logs inside the pod.  
I have to fetch those logs from filebeat to elasticsearch (running on the server).  
Please suggest that how we can fetch those application logs using filebeat, which are being created inside pods or any alternative to get those logs outside.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 2, 2020, 1:59am UTC](https://discuss.elastic.co/t/fetch-application-logs-running-on-kubernetes-using-filebeat/247075/2 "2020-09-02T01:59:17Z")

</div>

Perhaps start with these two documents and video

> **[Kubernetes observability tutorial: Log monitoring and analysis](https://www.elastic.co/blog/kubernetes-observability-tutorial-k8s-log-monitoring-and-analysis-elastic-stack)**
>
> Learn how Elastic Observability makes it easy to monitor and detect anomalies in millions of logs from thousands of containers running hundreds of microservices — while Kubernetes scales applications with changing pod counts. All from a single UI.

[https://www.elastic.co/guide/en/beats/filebeat/current/running-on-kubernetes.html](https://www.elastic.co/guide/en/beats/filebeat/current/running-on-kubernetes.html)

> **[Observable Kubernetes with Elasticsearch](https://www.elastic.co/webinars/observable-kubernetes-with-the-elastic-stack)**
>
> With the Kubernetes and Docker module in Beats, sending logs and metrics from your containerization and orchestration environment to Elasticsearch is one command away. Additionally, the Autodiscover feature in Filebeat and Metricbeat dynamically...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 30, 2020, 1:59am UTC](https://discuss.elastic.co/t/fetch-application-logs-running-on-kubernetes-using-filebeat/247075/3 "2020-09-30T01:59:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
