# Filebeat ignores stdout logs with autodiscover of docker containers

**URL:** <https://discuss.elastic.co/t/filebeat-ignores-stdout-logs-with-autodiscover-of-docker-containers/155544>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 6, 2018, 12:17pm UTC](https://discuss.elastic.co/t/filebeat-ignores-stdout-logs-with-autodiscover-of-docker-containers/155544 "2018-11-06T12:17:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![givorenon](https://avatars.discourse-cdn.com/v4/letter/g/aca169/32.png) [@givorenon](https://discuss.elastic.co/u/givorenon)\
**Post date:** [November 6, 2018, 12:17pm UTC](https://discuss.elastic.co/t/filebeat-ignores-stdout-logs-with-autodiscover-of-docker-containers/155544/1 "2018-11-06T12:17:04Z")

</div>

Here is my filebeat.yml

```
filebeat.autodiscover:
  providers:
    - type: docker
      #hints.enabled: true
      templates:
        - condition:
            contains:
              docker.container.name: agent
          config:
            - type: docker
              containers.ids:
                - "${data.docker.container.id}"
              processors:
              - add_docker_metadata: ~

              fields_under_root: true

              multiline.pattern: '^\['
              multiline.negate: true
              multiline.match: after

    - type: docker
      #hints.enabled: true
      templates:
        - condition:
            contains:
              docker.container.name: tool
          config:
            - type: docker
              containers.ids:
                - "${data.docker.container.id}"
              processors:
              - add_docker_metadata: ~

              fields_under_root: true

output.console:
  pretty: true

```

When I use this config, filebeat ignores stdout from my discovered containers, but handles stderr lines. Setting `containers.stream: "all"` explicitly doesn't help either since it's default value for this option.  
I discovered by accident, that adding `hints.enabled: true` to my providers fixes stdout logs handling. However, another problem arises: `hints.enabled: true` makes filebeat ignore my autodiscover configuration. With `hints.enabled: true` filebeat collects logs produced by all containers, not by ones specified in autodiscover templates. It even starts to collect logs produced by filebeat container itself, which makes it infinite loop of collecting events and logging information about it. So the questions are:

1. How do I collect stdout logs if I want to keep using autodiscover?
2. Why do hints work this way? Why enabling of hints implicitly changes behaviour of autodiscovery? Why Filebeat sends its own logs by default?

---

<div class="post-metadata">

**Author:** ![Aleksey\_Kosmachev](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@Aleksey\_Kosmachev](https://discuss.elastic.co/u/Aleksey_Kosmachev)\
**Post date:** [November 9, 2018, 7:13am UTC](https://discuss.elastic.co/t/filebeat-ignores-stdout-logs-with-autodiscover-of-docker-containers/155544/2 "2018-11-09T07:13:30Z")

</div>

I have the same problem. Maybe someone knows workaround?

---

<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:** [December 7, 2018, 7:13am UTC](https://discuss.elastic.co/t/filebeat-ignores-stdout-logs-with-autodiscover-of-docker-containers/155544/3 "2018-12-07T07:13:31Z")

</div>

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