# Nest fields more than 2 levels?

**URL:** <https://discuss.elastic.co/t/nest-fields-more-than-2-levels/48585>\
**Category:** Logstash\
**Created:** [April 27, 2016, 6:43pm UTC](https://discuss.elastic.co/t/nest-fields-more-than-2-levels/48585 "2016-04-27T18:43:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamthealex](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@iamthealex](https://discuss.elastic.co/u/iamthealex)\
**Post date:** [April 27, 2016, 6:43pm UTC](https://discuss.elastic.co/t/nest-fields-more-than-2-levels/48585/1 "2016-04-27T18:43:01Z")

</div>

Can logstash nest fields more than two levels?  
I wanted to use [http][response][content-length],  
but the output field becomes [response][content-length] when I do that in a grok filter.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 27, 2016, 6:45pm UTC](https://discuss.elastic.co/t/nest-fields-more-than-2-levels/48585/2 "2016-04-27T18:45:56Z")

</div>

> Can logstash nest fields more than two levels?

Yes, that shouldn't be a problem.

> I wanted to use [http][response][content-length],  
> but the output field becomes [response][content-length] when I do that in a grok filter.

Please give a complete example and state what version of Logstash you have.

---

<div class="post-metadata">

**Author:** ![iamthealex](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@iamthealex](https://discuss.elastic.co/u/iamthealex)\
**Post date:** [April 27, 2016, 7:17pm UTC](https://discuss.elastic.co/t/nest-fields-more-than-2-levels/48585/3 "2016-04-27T19:17:46Z")

</div>

I'm using logstash 2.0.0.

I spent some time trying to strip down my config to something smaller and could not reproduce the problem.  
I scrolled back in my terminal, and I see that the "http" _was_ there and the stdout output filter formatting confused me into thinking the http was missing.

Thanks for your reply, and I apologize for not double-checking myself before posting.

---

<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:** [July 6, 2017, 5:00am UTC](https://discuss.elastic.co/t/nest-fields-more-than-2-levels/48585/4 "2017-07-06T05:00:16Z")

</div>

Closed on July 6, 2017, 5:00am UTC


