# Docker logs being written to file

**URL:** <https://discuss.elastic.co/t/docker-logs-being-written-to-file/188088>\
**Category:** Beats\
**Tags:** auditbeat\
**Created:** [June 28, 2019, 4:19pm UTC](https://discuss.elastic.co/t/docker-logs-being-written-to-file/188088 "2019-06-28T16:19:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdeprez](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@tdeprez](https://discuss.elastic.co/u/tdeprez)\
**Post date:** [June 28, 2019, 4:19pm UTC](https://discuss.elastic.co/t/docker-logs-being-written-to-file/188088/1 "2019-06-28T16:19:54Z")

</div>

I'm testing the auditbeat docker image using the kubernetes manifest linked from here:  
[https://www.elastic.co/guide/en/beats/auditbeat/7.2/running-on-kubernetes.html](https://www.elastic.co/guide/en/beats/auditbeat/7.2/running-on-kubernetes.html)

It appears the auditbeat logs are being written to a file, /usr/share/auditbeat/logs/auditbeat

Filebeat/metricbeat docker images write to stdout, so are available using `kubectl logs <image>`

The manifest is missing an arguement, "-e", to send the logs to stdout.  
ie

```auto
        args: [
          "-c", "/etc/auditbeat.yml", "-e"
        ]

```

Says to logs bugs here before creating an issue.  
Thanks

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 1, 2019, 5:48pm UTC](https://discuss.elastic.co/t/docker-logs-being-written-to-file/188088/2 "2019-07-01T17:48:33Z")

</div>

Thanks for following the procedure and reporting the issue here first 😄. Would you be able to open a PR to fix this [file](https://github.com/elastic/beats/blob/49336802308b82f94058f8c81b82aedcdf496d0b/deploy/kubernetes/auditbeat/auditbeat-daemonset.yaml#L22-L23) and then run `make` from the `deploy/kubernetes` dir to update the generated `auditbeat-kubernetes.yaml`? Otherwise please open a new issue on Github as this is definitely bug.

---

<div class="post-metadata">

**Author:** ![tdeprez](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@tdeprez](https://discuss.elastic.co/u/tdeprez)\
**Post date:** [July 2, 2019, 9:18am UTC](https://discuss.elastic.co/t/docker-logs-being-written-to-file/188088/3 "2019-07-02T09:18:26Z")

</div>

Thanks. Pull request done, I think

> <https://github.com/elastic/beats/pull/12751>

---

<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 23, 2019, 9:18am UTC](https://discuss.elastic.co/t/docker-logs-being-written-to-file/188088/4 "2019-07-23T09:18:26Z")

</div>

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