# Elasticsearch + filebeat + apache on docker environment

**URL:** <https://discuss.elastic.co/t/elasticsearch-filebeat-apache-on-docker-environment/340842>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 15, 2023, 5:07pm UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-apache-on-docker-environment/340842 "2023-08-15T17:07:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jackson\_Luz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jackson_luz/32/122272_2.png) [@Jackson\_Luz](https://discuss.elastic.co/u/Jackson_Luz)\
**Post date:** [August 15, 2023, 5:07pm UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-apache-on-docker-environment/340842/1 "2023-08-15T17:07:20Z")

</div>

Hello! Newbie here. Imagine the following scenario: a Docker environment where there are 3 containers. One is running Elasticsearch, another has Filebeat, and the third one contains Apache. All of them are on the same network. How can I configure my Filebeat, Apache, or even Elasticsearch configuration files to collect access and error logs from Apache? When I have Filebeat in a separate container, how does it work to specify the paths?

images:

1. [docker.elastic.co/elasticsearch/elasticsearch:8.7.1](http://docker.elastic.co/elasticsearch/elasticsearch:8.7.1);
2. [docker.elastic.co/beats/filebeat:8.7.1](http://docker.elastic.co/beats/filebeat:8.7.1);
3. httpd:2.4;

---

<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 12, 2023, 5:08pm UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-apache-on-docker-environment/340842/2 "2023-09-12T17:08:01Z")

</div>

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