# Cannot PUT Nginx access default pipeline to Elastic

**URL:** <https://discuss.elastic.co/t/cannot-put-nginx-access-default-pipeline-to-elastic/218556>\
**Category:** Elasticsearch\
**Created:** [February 10, 2020, 10:07am UTC](https://discuss.elastic.co/t/cannot-put-nginx-access-default-pipeline-to-elastic/218556 "2020-02-10T10:07:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevizik](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@stevizik](https://discuss.elastic.co/u/stevizik)\
**Post date:** [February 10, 2020, 10:07am UTC](https://discuss.elastic.co/t/cannot-put-nginx-access-default-pipeline-to-elastic/218556/1 "2020-02-10T10:07:36Z")

</div>

Hi,

i want to modify the default Nginx Access pipeline in order to add new fields.  
In order to test the pipeline before using it to my Production environment i though of creating a new pipeline and test using this one.  
So to start i just copied the /usr/share/filebeat/module/nginx/access/ingest/default.json to a new file and hit  
curl -H "Content-Type: application/json" -XPUT [http://172.28.162.21:9200/\_ingest/pipeline/test-nginx-access](http://172.28.162.21:9200/_ingest/pipeline/test-nginx-access) -d@enhanced.json **strong text**

This gives me the following parsing error

> {"error":{"root\_cause":[{"type":"parse\_exception","reason":"Failed to parse content to map"}],"type":"parse\_exception","reason":"Failed to parse content to map","caused\_by":{"type":"json\_parse\_  
> exception","reason":"Unexpected character ('{' (code 123)): was expecting double-quote to start field name\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@689fd676; line: 1,

And the question is how the default.json is not a well formatted JSON that i can use as a starting point?

---

<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 9, 2020, 10:07am UTC](https://discuss.elastic.co/t/cannot-put-nginx-access-default-pipeline-to-elastic/218556/2 "2020-03-09T10:07:41Z")

</div>

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