# Getting Nginx Logs From docker Container

**URL:** <https://discuss.elastic.co/t/getting-nginx-logs-from-docker-container/336457>\
**Category:** Elastic Agent\
**Tags:** integrations\
**Created:** [June 20, 2023, 9:21am UTC](https://discuss.elastic.co/t/getting-nginx-logs-from-docker-container/336457 "2023-06-20T09:21:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethical20](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethical20/32/68123_2.png) [@ethical20](https://discuss.elastic.co/u/ethical20)\
**Post date:** [June 20, 2023, 9:21am UTC](https://discuss.elastic.co/t/getting-nginx-logs-from-docker-container/336457/1 "2023-06-20T09:21:34Z")

</div>

Hi All,

Usually I used to to read Nginx Logs via the [Nginx integration](https://docs.elastic.co/en/integrations/nginx) available, but now the nginx app is dockerised within a container.

The [docker integration](https://docs.elastic.co/en/integrations/nginx) available in integrations as i can see will not read the nginx logs.

How can I read the nginx logs for a dockerised nginx container?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/8/080fc16a682e8edd321f98b77c6400a0b9a6fb81.png)  
This is the current config.

Any help is really appreciated.

---

<div class="post-metadata">

**Author:** ![lalits](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lalits/32/107097_2.png) [@lalits](https://discuss.elastic.co/u/lalits)\
**Post date:** [June 20, 2023, 5:36pm UTC](https://discuss.elastic.co/t/getting-nginx-logs-from-docker-container/336457/2 "2023-06-20T17:36:40Z")

</div>

> [@ethical20](#):
>
> but now the nginx app is dockerised within a container.

Is the issue that, the log paths inside the nginx docker container is not accessible from the nginx integration? Can you volume mount the nginx logs to the host and pass the same path?

---

<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:** [July 18, 2023, 5:36pm UTC](https://discuss.elastic.co/t/getting-nginx-logs-from-docker-container/336457/3 "2023-07-18T17:36:53Z")

</div>

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