# ElasticSearch Pipeline Issue

**URL:** <https://discuss.elastic.co/t/elasticsearch-pipeline-issue/85461>\
**Category:** Elasticsearch\
**Created:** [May 11, 2017, 6:16pm UTC](https://discuss.elastic.co/t/elasticsearch-pipeline-issue/85461 "2017-05-11T18:16:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudhir\_mca](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sudhir\_mca](https://discuss.elastic.co/u/sudhir_mca)\
**Post date:** [May 11, 2017, 6:16pm UTC](https://discuss.elastic.co/t/elasticsearch-pipeline-issue/85461/1 "2017-05-11T18:16:42Z")

</div>

Hi All,

Could someone help me with sample json parsing using elasticsearch pipeline.  
I am creating following pipeline in Elasticsearch 5.4.  
PUT \_ingest/pipeline/abc  
{  
"description" : "ABC",  
"processors" : [  
{  
"json" : {  
"field": "\_source",  
"target\_field": "json\_target"  
}  
}  
]  
}

When i do simulate test on this pipeline. I am getting error "java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: field [\_source] not present as part of path [\_source]"

POST \_ingest/pipeline/abc/\_simulate  
{  
"docs" : [  
{  
"\_index": "index",  
"\_type": "type",  
"\_id": "id",  
"\_source": {"foo": 200 }  
}  
]  
}

**Error**  
{  
"docs": [  
{  
"error": {  
"root\_cause": [  
{  
"type": "exception",  
"reason": "java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: field [\_source] not present as part of path [\_source]",  
"header": {  
"processor\_type": "json"  
}  
}  
],  
"type": "exception",  
"reason": "java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: field [\_source] not present as part of path [\_source]",  
"caused\_by": {  
"type": "illegal\_argument\_exception",  
"reason": "java.lang.IllegalArgumentException: field [\_source] not present as part of path [\_source]",  
"caused\_by": {  
"type": "illegal\_argument\_exception",  
"reason": "field [\_source] not present as part of path [\_source]"  
}  
},  
"header": {  
"processor\_type": "json"  
}  
}  
}  
]  
}

---

<div class="post-metadata">

**Author:** ![sudhir\_mca](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@sudhir\_mca](https://discuss.elastic.co/u/sudhir_mca)\
**Post date:** [May 11, 2017, 6:42pm UTC](https://discuss.elastic.co/t/elasticsearch-pipeline-issue/85461/2 "2017-05-11T18:42:25Z")

</div>

I have figure out the issue

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [May 12, 2017, 1:45pm UTC](https://discuss.elastic.co/t/elasticsearch-pipeline-issue/85461/3 "2017-05-12T13:45:33Z")

</div>

Its helpful if you can post your solution here so that others who come across the same issue can find it later.

---

<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:** [June 9, 2017, 1:51pm UTC](https://discuss.elastic.co/t/elasticsearch-pipeline-issue/85461/4 "2017-06-09T13:51:23Z")

</div>

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