# Store number of subfields into one field

**URL:** <https://discuss.elastic.co/t/store-number-of-subfields-into-one-field/151826>\
**Category:** Logstash\
**Created:** [October 10, 2018, 10:56am UTC](https://discuss.elastic.co/t/store-number-of-subfields-into-one-field/151826 "2018-10-10T10:56:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepsing](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@deepsing](https://discuss.elastic.co/u/deepsing)\
**Post date:** [October 10, 2018, 10:56am UTC](https://discuss.elastic.co/t/store-number-of-subfields-into-one-field/151826/1 "2018-10-10T10:56:44Z")

</div>

I have a field with name **event.action.arguments** in logs. There are the numbers of subfield under **event.action.arguments**.  
eg:

```auto
{
	"event": {
		"action": {
			"arguments": {
				"First_argument": {
					"1st_sub": 123,
					"2nd_sub": "abc",
					"3rd_sub": "def",
					"4th_sub": "ghi",
					"5th_sub": "pqr",
					"6th_sub": "xyz"
				},
				"Second_argument": {
					"1st_sub": 123,
					"2nd_sub": "abc",
					"3rd_sub": "def",
					"4th_sub": "ghi",
					"5th_sub": "pqr",
					"6th_sub": "xyz"
				}
			}
		}
	}
}

```

I want to store entire content from **event.action.arguments** into single string in **event.action.arguments\_string**. In this way, I will have all the arguments as one field in Elastic.

---

<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:** [November 7, 2018, 11:02am UTC](https://discuss.elastic.co/t/store-number-of-subfields-into-one-field/151826/2 "2018-11-07T11:02:14Z")

</div>

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