# Nested Mapping - Array of objects

**URL:** <https://discuss.elastic.co/t/nested-mapping-array-of-objects/129650>\
**Category:** Elasticsearch\
**Created:** [April 26, 2018, 11:36am UTC](https://discuss.elastic.co/t/nested-mapping-array-of-objects/129650 "2018-04-26T11:36:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![satkumvnr](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@satkumvnr](https://discuss.elastic.co/u/satkumvnr)\
**Post date:** [April 26, 2018, 11:36am UTC](https://discuss.elastic.co/t/nested-mapping-array-of-objects/129650/1 "2018-04-26T11:36:09Z")

</div>

HI,

I am have sample document provided below. Pls assist, how to perform nested mapping,

```
{
	"Token": null,
	"LoginStamp": "4/18/2018 5:34:55 AM",
	"Uri": null,
	"Events": [{
		"Source": "Microsoft1",
		"EventType": "Add",
		"Message": "User profile is available",
		"TimeStamp": "2018-04-18T05:34:54.2916355Z"
	}, {
		"Source": "Microsoft2",
		"EventType": "Remove",
		"Message": "User profile is not available",
		"TimeStamp": "2018-04-18T05:34:54.2916355Z"
	}],
	"CallerServerInformation": null,
	"HostingServerInformation": {
		"ContainerId": null,
		"ContainerInstanceId": null,
		"ThreadPrincipal": "xx1234"
	},
	"KeyFields": "trf"
}

```

I need to get the values of Source,EventType,Message and TimeStamp.

Kindly assist.

---

<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:** [May 24, 2018, 11:36am UTC](https://discuss.elastic.co/t/nested-mapping-array-of-objects/129650/2 "2018-05-24T11:36:14Z")

</div>

Closed on May 24, 2018, 11:36am UTC

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