# Parse Json Array

**URL:** https://discuss.elastic.co/t/parse-json-array/91704
**Category:** Logstash
**Created:** [July 4, 2017, 2:29am UTC](https://discuss.elastic.co/t/parse-json-array/91704 "2017-07-04T02:29:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Edufernandez2](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@Edufernandez2](https://discuss.elastic.co/u/Edufernandez2)
#### Post date: [July 4, 2017, 2:29am UTC](https://discuss.elastic.co/t/parse-json-array/91704/1 "2017-07-04T02:29:00Z")

</div>

Trying to parse a Json array like this message

[{"UserDomain":"VOFFICESECURE","UserName":"Administrator","ComputerName":"[DC01.vofficesecure.com](http://DC01.vofficesecure.com)"},{"UserDomain":"VOFFICESECURE","UserName":"Administrator","ComputerName":"[Juliano-PC.vofficesecure.com](http://Juliano-PC.vofficesecure.com)"}]

I Would like to get Two different documents and can make it happens using below config using the cli and manually inputting the log

input {  
stdin {  
codec =\> "json"  
}  
}  
filter {  
split { }  
}

output {  
stdout {  
codec =\> rubydebug  
}  
}

Im actually receiving that log from filebeat, I tried to use "codec =\> json" in the input "beats" but cant get the same results using the "split" in filter and indexing in Elasticsearch

Thanks

---

<div class="post-metadata">

### Author: ![Edufernandez2](https://avatars.discourse-cdn.com/v4/letter/e/e47774/32.png) [@Edufernandez2](https://discuss.elastic.co/u/Edufernandez2)
#### Post date: [July 4, 2017, 3:10am UTC](https://discuss.elastic.co/t/parse-json-array/91704/2 "2017-07-04T03:10:45Z")

</div>

Manage to got it working creating another beats input with json codec in another port.

---

<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: [August 1, 2017, 3:11am UTC](https://discuss.elastic.co/t/parse-json-array/91704/3 "2017-08-01T03:11:02Z")

</div>

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