# Can not collector docker container event

**URL:** <https://discuss.elastic.co/t/can-not-collector-docker-container-event/195875>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [August 20, 2019, 9:36am UTC](https://discuss.elastic.co/t/can-not-collector-docker-container-event/195875 "2019-08-20T09:36:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZMMWMY](https://avatars.discourse-cdn.com/v4/letter/z/a587f6/32.png) [@ZMMWMY](https://discuss.elastic.co/u/ZMMWMY)\
**Post date:** [August 20, 2019, 9:36am UTC](https://discuss.elastic.co/t/can-not-collector-docker-container-event/195875/1 "2019-08-20T09:36:09Z")

</div>

i wannt collector docker container application heartbeat , but it does not work, that is my config

```auto
heartbeat.autodiscover:
  providers:
    - type: docker
      templates:
          config:
            - type: http
              hosts: ["${data.host}:${data.port}"]
              schedule: "@every 1s"
              timeout: 1s
processors:
  - add_cloud_metadata:
  - add_docker_metadata:
  - add_host_metadata:
output.elasticsearch:
  hosts: ["http://ip:9200"]
  username: "username"
  password: "changeme"
setup.kibana:
  host: "http://kibana:5601"
monitoring:
  enabled: true
  elasticsearch:
    hosts: ["http://es:9200"]
    username: beat
    password: ps

```

docker-compose.yml

```auto
version: '2'
services:
  filebeat:
    user: root
    image: registry-vpc.cn-hangzhou.aliyuncs.com/elasticstack/heartbeat:7.3.0
    volumes:
      - "./heartbeat.yml:/usr/share/heartbeat/heartbeat.yml"
      - "/var/run/docker.sock:/var/run/docker.sock:ro"

```

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [September 5, 2019, 1:34am UTC](https://discuss.elastic.co/t/can-not-collector-docker-container-event/195875/2 "2019-09-05T01:34:04Z")

</div>

You should generally not add the three processors you've added to heartbeat, they add info about the machine heartbeat is being run on, not what it's auto-discovering.

Are there any logs or other info that point to a problem? What's the output?

---

<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:** [October 3, 2019, 1:34am UTC](https://discuss.elastic.co/t/can-not-collector-docker-container-event/195875/3 "2019-10-03T01:34:07Z")

</div>

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