# If in json nested field

**URL:** <https://discuss.elastic.co/t/if-in-json-nested-field/260343>\
**Category:** Logstash\
**Created:** [January 6, 2021, 1:07pm UTC](https://discuss.elastic.co/t/if-in-json-nested-field/260343 "2021-01-06T13:07:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [January 6, 2021, 2:26pm UTC](https://discuss.elastic.co/t/if-in-json-nested-field/260343/5 "2021-01-06T14:26:19Z")

</div>

Check this thread

> [@I would like to access nested data from an array](https://discuss.elastic.co/t/i-would-like-to-access-nested-data-from-an-array/71432):
>
> I have a data structure looking like this: printed as codec =\> rubydebug { "sequence\_number" =\> 557, "event\_tags" =\> [[0] { "value" =\> "nacl-st-qkrrfq-ppu-server-6y35vxntjont", "key" =\> "originhost" } ] . . . . } or printed as codec =\> line "event\_tags":[{"value":"nacl-st-alcags-ppu-server-zwul4nphc2lc","key":"originhost"}] or from kibana: event\_tags { "value": "nacl-st-ibgki7-ppu-server-bl46vcsakx5f", "key": "originhost" } I would like ta add a field calld "originho…

---

_[View the full topic](https://discuss.elastic.co/t/if-in-json-nested-field/260343)._
