# Add json indies another json when uploading data to ES

**URL:** <https://discuss.elastic.co/t/add-json-indies-another-json-when-uploading-data-to-es/209734>\
**Category:** Logstash\
**Created:** [November 27, 2019, 5:15pm UTC](https://discuss.elastic.co/t/add-json-indies-another-json-when-uploading-data-to-es/209734 "2019-11-27T17:15:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anuwa\_A](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anuwa_a/32/47533_2.png) [@Anuwa\_A](https://discuss.elastic.co/u/Anuwa_A)\
**Post date:** [November 27, 2019, 5:15pm UTC](https://discuss.elastic.co/t/add-json-indies-another-json-when-uploading-data-to-es/209734/1 "2019-11-27T17:15:06Z")

</div>

When uploading data to ES i need to have a json structure like

```
	"Countries" : {
		"Asia" : {
			"name" : "Srilanka"
		},
		"Africa" : {
			"name" : "Kenya"
		}
	}

```

Aggregate inside Aggregate.

is it possible to do this in logstash out put plhgin

---

<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:** [December 25, 2019, 5:15pm UTC](https://discuss.elastic.co/t/add-json-indies-another-json-when-uploading-data-to-es/209734/2 "2019-12-25T17:15:24Z")

</div>

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