# How can access nested fields with dots in pipeline processors

**URL:** <https://discuss.elastic.co/t/how-can-access-nested-fields-with-dots-in-pipeline-processors/169426>\
**Category:** Elasticsearch\
**Created:** [February 21, 2019, 2:08pm UTC](https://discuss.elastic.co/t/how-can-access-nested-fields-with-dots-in-pipeline-processors/169426 "2019-02-21T14:08:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliali](https://avatars.discourse-cdn.com/v4/letter/o/ecccb3/32.png) [@oliali](https://discuss.elastic.co/u/oliali)\
**Post date:** [February 21, 2019, 2:08pm UTC](https://discuss.elastic.co/t/how-can-access-nested-fields-with-dots-in-pipeline-processors/169426/1 "2019-02-21T14:08:49Z")

</div>

Hi all,

I'm trying to access nested fields which names have dots in my pipeline proccessors, but I don't know how

This is my input json:

> {  
> "customMsgAtts": {  
> "http.response.status": "200",  
> "http.response.info": "OK",  
> "http.request.verb": "POST",  
> "result":"OK"  
> },  
> "correlationId": "67fdce5b6c000b9e63fcc85f"  
> }

And this is my pipeline simulation:

> {  
> "pipeline": {  
> "description": "apigtw\_events\_pipeline",  
> "processors": [  
> {  
> "json": {  
> "field": "message",  
> "target\_field": "transaction"  
> }  
> },  
> {  
> "set": {  
> "field": "transactionresult",  
> "value": "{{transaction.customMsgAtts.result}}"  
> }  
> },  
> {  
> "set": {  
> "field": "transactionverb",  
> "value": "{{transaction.customMsgAtts.http.request.verb}}"  
> }  
> }  
> ],  
> "on\_failure": [  
> {  
> "set": {  
> "field": "\_index",  
> "value": "failed-{{ \_index }}"  
> }  
> },  
> {  
> "set" : {  
> "field" : "error",  
> "value" : "{{ \_ingest.on\_failure\_message }}"  
> }  
> }  
> ]  
> },  
> "docs": [  
> {  
> "\_index": "my-index",  
> "\_type": "my-type",  
> "\_id": "my-id",  
> "\_source": {  
> "message": "{"customMsgAtts": {"http.response.status": "200","http.response.info": "OK","http.request.verb": "POST","result":"OK"},"correlationId": "67fdce5b6c000b9e63fcc85f"}"  
> }  
> }  
> ]  
> }

The result of the simulation is:

> {  
> "docs": [  
> {  
> "doc": {  
> "\_index": "my-index",  
> "\_type": "my-type",  
> "\_id": "my-id",  
> "\_source": {  
> "transactionverb": "",  
> "transactionresult": "OK",  
> "message": "{"customMsgAtts": {"http.response.status": "200","http.response.info": "OK","http.request.verb": "POST","result":"OK"},"correlationId": "67fdce5b6c000b9e63fcc85f"}",  
> "transaction": {  
> "customMsgAtts": {  
> "result": "OK",  
> "http.response.status": "200",  
> "http.response.info": "OK",  
> "http.request.verb": "POST"  
> },  
> "correlationId": "67fdce5b6c000b9e63fcc85f"  
> }  
> },  
> "\_ingest": {  
> "timestamp": "2019-02-21T14:01:37.585Z"  
> }  
> }  
> }  
> ]  
> }

So, I can process result field inside customMsgAtts, but there is no way to process http.request.verb field (empty result)

Thanks in advance,

---

<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 21, 2019, 2:08pm UTC](https://discuss.elastic.co/t/how-can-access-nested-fields-with-dots-in-pipeline-processors/169426/2 "2019-03-21T14:08:54Z")

</div>

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