# How can I add a list of fields?

**URL:** <https://discuss.elastic.co/t/how-can-i-add-a-list-of-fields/51991>\
**Category:** Logstash\
**Created:** [June 6, 2016, 6:46pm UTC](https://discuss.elastic.co/t/how-can-i-add-a-list-of-fields/51991 "2016-06-06T18:46:19Z")\
**Posts on this page:** 2\
**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:** [June 6, 2016, 6:46pm UTC](https://discuss.elastic.co/t/how-can-i-add-a-list-of-fields/51991/1 "2016-06-06T18:46:19Z")

</div>

I know how to use mutate add\_field to add a field.  
I know how to use mutate add\_tag to add to [tags].  
Is there any way to add a list of fields with structure?

I'd like to add something like this to the top-level json

"contexts":[  
{  
"type": "link",  
"href": "[http://www.example.com](http://www.example.com)"  
},  
{  
"type": "image",  
"src": "[www.example.com/logo.gif](http://www.example.com/logo.gif)"  
}  
]

---

<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, 4:54am UTC](https://discuss.elastic.co/t/how-can-i-add-a-list-of-fields/51991/2 "2017-07-06T04:54:24Z")

</div>


