# Is it possible to run beats agent as a container

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-run-beats-agent-as-a-container/350393>\
**Category:** Beats\
**Tags:** docker, beats-module\
**Created:** [January 4, 2024, 3:56pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-beats-agent-as-a-container/350393 "2024-01-04T15:56:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ACodingfreak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/acodingfreak/32/130511_2.png) [@ACodingfreak](https://discuss.elastic.co/u/ACodingfreak)\
**Post date:** [January 4, 2024, 3:56pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-beats-agent-as-a-container/350393/1 "2024-01-04T15:56:03Z")

</div>

Hi All,

I am quite new to Elastic and have a very basic doubt.

I understand that beats is used as an agent running on edge node shipping the data to Elasticsearch. It is installed as an RPM or DEB package but can it be installed as a container inside the edge node ?

For e.g. I can see filebeat inside a docker as shown in below link, but I am not sure how can it monitor the log files generated on the host system

> **[Run Filebeat on Docker | Filebeat Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html)**

---

<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:** [January 4, 2024, 4:05pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-beats-agent-as-a-container/350393/2 "2024-01-04T16:05:20Z")

</div>

Hi @ACodingfreak

The answer is yes ... But you will need to volume mount the paths of the host logs / directory to the filebeat docker container and make sure permissions are good etc..etc..

That is docker related and you should read about it.

> **[Volumes](https://docs.docker.com/storage/volumes/)**
>
> Learn how to create, manage, and use volumes instead of bind mounts for persisting data generated and used by Docker.

---

<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:** [February 1, 2024, 6:05pm UTC](https://discuss.elastic.co/t/is-it-possible-to-run-beats-agent-as-a-container/350393/3 "2024-02-01T18:05:57Z")

</div>

Closed on February 1, 2024, 6:05pm UTC

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