# Logstash parse Array of objects

**URL:** https://discuss.elastic.co/t/logstash-parse-array-of-objects/203854
**Category:** Logstash
**Created:** [October 16, 2019, 2:02pm UTC](https://discuss.elastic.co/t/logstash-parse-array-of-objects/203854 "2019-10-16T14:02:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![johnSph](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@johnSph](https://discuss.elastic.co/u/johnSph)
#### Post date: [October 16, 2019, 2:02pm UTC](https://discuss.elastic.co/t/logstash-parse-array-of-objects/203854/1 "2019-10-16T14:02:53Z")

</div>

Hello,

I'm having some issues with creating a proper logstash config that could parse an array of objects.

I have the example data source as example:

[  
{  
"id": 666,  
"time": 1561938911000,  
"view": {  
"current": {  
"name": "Alert1"  
}  
},  
"description": [  
{  
"asset": {  
"hostname": "machine10",  
"ip": "10.0.0.10",  
"class": "desktop",  
"login": [  
"admin",  
"john"  
]  
}  
}  
],  
"level": 0.147  
}  
]

I tried using codec =\> json and split {} but I still getting "incompatible json object". Any suggestion or what I could be trying here ?  
Thanks!

---

<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 13, 2019, 2:22pm UTC](https://discuss.elastic.co/t/logstash-parse-array-of-objects/203854/3 "2019-11-13T14:22:22Z")

</div>

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