# Unable to create pipeline for nginx

**URL:** <https://discuss.elastic.co/t/unable-to-create-pipeline-for-nginx/262858>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 1, 2021, 3:56pm UTC](https://discuss.elastic.co/t/unable-to-create-pipeline-for-nginx/262858 "2021-02-01T15:56:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yukpun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yukpun/32/78455_2.png) [@yukpun](https://discuss.elastic.co/u/yukpun)\
**Post date:** [February 1, 2021, 3:56pm UTC](https://discuss.elastic.co/t/unable-to-create-pipeline-for-nginx/262858/1 "2021-02-01T15:56:55Z")

</div>

For some reason, nginx logs stopped going to elastick stack. I checked status, and I see this:

`ERROR [publisher_pipeline_output] pipeline/output.go:154 Failed to connect to backoff(elasticsearch(http://elastic-server:9200)): Connection marked as failed because the on Connect callback failed: Error getting pipeline for fileset nginx/access: Error YAML decoding the pipeline file: ingest/pipeline.yml: yaml: invalid map key: map[interface {}]interface {}{"clientip":interface {}(nil)}`

I cannot find out what's wrong. Where I can find that map key "clientip" which is mentioned above

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [February 1, 2021, 7:27pm UTC](https://discuss.elastic.co/t/unable-to-create-pipeline-for-nginx/262858/2 "2021-02-01T19:27:38Z")

</div>

What versions of Filebeat and Elasticsearch are you running?

Shaunak

---

<div class="post-metadata">

**Author:** ![yukpun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yukpun/32/78455_2.png) [@yukpun](https://discuss.elastic.co/u/yukpun)\
**Post date:** [February 2, 2021, 7:16am UTC](https://discuss.elastic.co/t/unable-to-create-pipeline-for-nginx/262858/3 "2021-02-02T07:16:11Z")

</div>

7.9.3  
Here is config:

```
version: '3'

services:

  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
    container_name: elasticsearch2
    environment:
      - discovery.type=single-node
      - ES_JAVA_OPTS=-Xms8g -Xmx8g
    volumes:
      - ./es_data:/usr/share/elasticsearch/data
    ports:
      - "9200:9200"

  kibana:
    image: docker.elastic.co/kibana/kibana:7.9.3
    container_name: kibana2
    ports:
      - "5601:5601"
    environment:
      ELASTICSEARCH_URL: http://elasticsearch:9200
    links:
      - elasticsearch

```

And for filebeat:

```
filebeat.config:
  modules:
    path: ${path.config}/modules.d/*.yml
    reload.enabled: false
filebeat.modules:
- module: nginx
  access:
    enabled: true
    var.paths: ["/var/log/nginx/access.log*"]
  error:
    enabled: true
    var.paths: ["/var/log/nginx/error.log*"]
  ingress_controller:
    enabled: false

output.elasticsearch:
  hosts: "http://SERVER_WITH_DOCKER:9200"
  index: "nginx-%{+yyyy.MM.dd}"
setup.template.pattern: "nginx-*"
setup.template.name: "nginx"
setup.template.settings:
  index.number_of_replicas: 0
setup.ilm.enabled: false
setup.template.fields: "fields.yml"
setup.template.overwrite: true
```

---

<div class="post-metadata">

**Author:** ![yukpun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yukpun/32/78455_2.png) [@yukpun](https://discuss.elastic.co/u/yukpun)\
**Post date:** [February 2, 2021, 9:38am UTC](https://discuss.elastic.co/t/unable-to-create-pipeline-for-nginx/262858/4 "2021-02-02T09:38:50Z")

</div>

I found wrong parameter in

`/usr/share/filebeat/module/nginx/access/ingest/pipeline.yml`

There was custom modification, which stopped working for some reason

---

<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:** [March 2, 2021, 11:39am UTC](https://discuss.elastic.co/t/unable-to-create-pipeline-for-nginx/262858/5 "2021-03-02T11:39:00Z")

</div>

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