# Filebeat windows: add\_docker\_metadata from npipe

**URL:** <https://discuss.elastic.co/t/filebeat-windows-add-docker-metadata-from-npipe/173333>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 21, 2019, 2:50pm UTC](https://discuss.elastic.co/t/filebeat-windows-add-docker-metadata-from-npipe/173333 "2019-03-21T14:50:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmitryzykov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitryzykov/32/42518_2.png) [@dmitryzykov](https://discuss.elastic.co/u/dmitryzykov)\
**Post date:** [March 21, 2019, 2:50pm UTC](https://discuss.elastic.co/t/filebeat-windows-add-docker-metadata-from-npipe/173333/1 "2019-03-21T14:50:46Z")

</div>

When using filebeat 6.6.2 inside windows container I can't add docker metadata from npipe:

filebeat.yaml

```auto
filebeat.inputs:
- type: docker
  containers:
    path: "C:\\ContainerLogs"
    ids: "*"
  processors:
    - add_docker_metadata:
      host: ["npipe://./pipe/docker_engine"]

output.logstash:
  hosts: [${LOGSTASH_HOSTS}]
  ssl:
    certificate_authorities: ["C:\\ssl\\ca.crt"]
    certificate: "C:\\ssl\\tls.crt"
    key: "C:\\ssl\\tls.key"

logging.level: debug

```

Log:

```auto
ERROR instance/beat.go:911 Exiting: Error in initing input: each processor needs to have exactly one action, but found 2 actions

```

I've tried different host syntax

```auto
  processors:
    - add_docker_metadata:
      host: ["npipe:////./pipe/docker_engine"]

```

but the same error

```auto
ERROR instance/beat.go:911 Exiting: Error in initing input: each processor needs to have exactly one action, but found 2 actions

```

or these two

```auto
  processors:
    - add_docker_metadata:
      host: "npipe://./pipe/docker_engine"

```

and

```auto
  processors:
    - add_docker_metadata:
      host: "npipe:////./pipe/docker_engine"

```

with such error

```auto
 ERROR instance/beat.go:911 Exiting: Error in initing input: required 'object', but found 'string' in field 'filebeat.inputs.0.processors.0.host' (source:'C:\Filebeat\filebeat.yml')

```

How can I add docker metadata properly from npipe?

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [March 29, 2019, 11:43am UTC](https://discuss.elastic.co/t/filebeat-windows-add-docker-metadata-from-npipe/173333/2 "2019-03-29T11:43:24Z")

</div>

The config indentation is incorrect.

`host` needs to be moved to the right by two spaces:

```auto
  processors:
    - add_docker_metadata:
        host: "npipe://./pipe/docker_engine"

```

---

<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 26, 2019, 11:43am UTC](https://discuss.elastic.co/t/filebeat-windows-add-docker-metadata-from-npipe/173333/3 "2019-04-26T11:43:29Z")

</div>

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