# Nested Data

**URL:** <https://discuss.elastic.co/t/nested-data/210192>\
**Category:** Logstash\
**Created:** [December 2, 2019, 1:42pm UTC](https://discuss.elastic.co/t/nested-data/210192 "2019-12-02T13:42:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSef](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/msef/32/46127_2.png) [@MSef](https://discuss.elastic.co/u/MSef)\
**Post date:** [December 2, 2019, 1:42pm UTC](https://discuss.elastic.co/t/nested-data/210192/1 "2019-12-02T13:42:53Z")

</div>

Hello there,

I have a CSV file and I am trying to filter the data using logstash.  
What i am having trouble with is that I have a column with data inside of it like this:  
Column name: endPlaces  
Data inside of column ex: [{""latitude"":-19.6818529,""longitude"":-49.0817124,""adress"":""Heath""},{""latitude"":8.8928524,""longitude"":11.3771496,""adress"":""Paget""}]  
I want to store this data in elasticsearch as follows:  
endPlaces: {  
{  
"location": {  
"lat": -19.6818529,  
"lon":-49.0817124  
}  
"adress": "Heath",  
},  
{  
"location": {  
"lat": 8.8928524,  
"lon":11.3771496  
}  
"adress": "Paget",  
}  
}  
How can i accomplish this and what is the best way to do this using logstash.  
Thank you in advance and sorry for my broken english I cant express myself well since its not my mother tongue

---

<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 30, 2019, 1:42pm UTC](https://discuss.elastic.co/t/nested-data/210192/2 "2019-12-30T13:42:57Z")

</div>

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