# Docker fields won't be added

**URL:** https://discuss.elastic.co/t/docker-fields-wont-be-added/222984
**Category:** Beats
**Tags:** docker, filebeat
**Created:** [March 10, 2020, 5:10pm UTC](https://discuss.elastic.co/t/docker-fields-wont-be-added/222984 "2020-03-10T17:10:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ghost\_recon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghost_recon/32/59919_2.png) [@ghost\_recon](https://discuss.elastic.co/u/ghost_recon)
#### Post date: [March 10, 2020, 5:10pm UTC](https://discuss.elastic.co/t/docker-fields-wont-be-added/222984/1 "2020-03-10T17:10:43Z")

</div>

I'm trying to send docker logs to logstash via filebeat, but the docker fields that are supposed to be added by filebeat don't show up in logsatsh like the docker.container.name, docker.container.image etc ...

my filebeat.yml:

```
filebeat.inputs:
 - type: docker
  containers:
    path: "/var/lib/docker/containers"
    ids: 
    - "e941afe02239874e0c08d78194b2caf0a9821770cd5375dfba5535e1ce0a7758"

output.logstash:
  hosts: ["localhost:5044"]

```

logstash.conf:

```
input {
    beats{
        port => 5044
    }
}
output{
   stdout{}
}
```

---

<div class="post-metadata">

### Author: ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)
#### Post date: [March 11, 2020, 8:20am UTC](https://discuss.elastic.co/t/docker-fields-wont-be-added/222984/2 "2020-03-11T08:20:09Z")

</div>

Please format you post using \</\<\> . It makes it easier to read.

---

<div class="post-metadata">

### Author: ![ghost\_recon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghost_recon/32/59919_2.png) [@ghost\_recon](https://discuss.elastic.co/u/ghost_recon)
#### Post date: [March 11, 2020, 9:45am UTC](https://discuss.elastic.co/t/docker-fields-wont-be-added/222984/3 "2020-03-11T09:45:40Z")

</div>

OK sorry

---

<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: [April 8, 2020, 9:45am UTC](https://discuss.elastic.co/t/docker-fields-wont-be-added/222984/4 "2020-04-08T09:45:43Z")

</div>

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