# JSON Array using Logstash

**URL:** https://discuss.elastic.co/t/json-array-using-logstash/93088
**Category:** Logstash
**Created:** [July 13, 2017, 11:22pm UTC](https://discuss.elastic.co/t/json-array-using-logstash/93088 "2017-07-13T23:22:21Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![iti](https://avatars.discourse-cdn.com/v4/letter/i/b19c9b/32.png) [@iti](https://discuss.elastic.co/u/iti)
#### Post date: [July 14, 2017, 8:49am UTC](https://discuss.elastic.co/t/json-array-using-logstash/93088/3 "2017-07-14T08:49:18Z")

</div>

You need to understand how logstash event works.  
Every event goes through filter/output. Aggregate filter does not filter out events. At output, you need to use if statement to discard none aggregated event. Otherwise last event stands.

See my example at

> [@How to use jdbc to import data into nested objects?](https://discuss.elastic.co/t/how-to-use-jdbc-to-import-data-into-nested-objects/52871/5):
>
> assuming you have a mapping like: "mappings": { "atype": { "properties": { "@timestamp": { "type": "date" }, "@version": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore\_above": 256 } } }, "id": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore\_above": 256 } } }, "nestedpath": { "type": "nested", "properties": { "nested\_field": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore\_above": 256 } } } } …

---

_[View the full topic](https://discuss.elastic.co/t/json-array-using-logstash/93088)._
