# Install filebeat and application in the same POD

**URL:** <https://discuss.elastic.co/t/install-filebeat-and-application-in-the-same-pod/196171>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 21, 2019, 5:58pm UTC](https://discuss.elastic.co/t/install-filebeat-and-application-in-the-same-pod/196171 "2019-08-21T17:58:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhat\_ranjan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prabhat_ranjan/32/44446_2.png) [@prabhat\_ranjan](https://discuss.elastic.co/u/prabhat_ranjan)\
**Post date:** [August 21, 2019, 5:58pm UTC](https://discuss.elastic.co/t/install-filebeat-and-application-in-the-same-pod/196171/1 "2019-08-21T17:58:30Z")

</div>

Team,  
I am working with kubernetes/docker and hosting a application on cloud.  
My application is having multi pod .I am creating image using docker .

I want to ship filebeat along with my application in the same dockerfile.  
i followed this [https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html](https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html) .

Just wanted to ensure if it is the right way to do it or not. I do not want to involve kubernetes and auto discovery here. My whole aim is to have filebeat and my app should run inside the same container. Even if we have multi instance ,my docker image will take care of installation of both filebeat and app in the same environment.

---

<div class="post-metadata">

**Author:** ![faec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/faec/32/46988_2.png) [@faec](https://discuss.elastic.co/u/faec)\
**Post date:** [August 22, 2019, 7:42pm UTC](https://discuss.elastic.co/t/install-filebeat-and-application-in-the-same-pod/196171/2 "2019-08-22T19:42:01Z")

</div>

Yes, configuring a custom image based on those instructions should work, though feel free to ask more specific questions if you run into problems while attempting it 🙂

---

<div class="post-metadata">

**Author:** ![prabhat\_ranjan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prabhat_ranjan/32/44446_2.png) [@prabhat\_ranjan](https://discuss.elastic.co/u/prabhat_ranjan)\
**Post date:** [August 23, 2019, 10:49am UTC](https://discuss.elastic.co/t/install-filebeat-and-application-in-the-same-pod/196171/3 "2019-08-23T10:49:30Z")

</div>

I am facing a lots of issue 🙂  
i built an image on alpine os but it seems not able to run Filebeat on the server though i can see it. if i am trying to run directly on it.It is giving me error filebeat not found. Please find the image below  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/e/3ecfbc6cbb65cdb74e97f50e90127fe0dbe7fae8.png)

I am checking this blog now : [Filebeat 6.x could not support running under OS alpine](https://discuss.elastic.co/t/filebeat-6-x-could-not-support-running-under-os-alpine/116195/11)

I am running filebeat 7.3.0. nay help here would be appreciated.

---

<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 20, 2019, 10:49am UTC](https://discuss.elastic.co/t/install-filebeat-and-application-in-the-same-pod/196171/4 "2019-09-20T10:49:32Z")

</div>

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