# I want to aggregate the JSON log events,How do i filter it in the logstash

**URL:** https://discuss.elastic.co/t/i-want-to-aggregate-the-json-log-events-how-do-i-filter-it-in-the-logstash/81743
**Category:** Logstash
**Created:** [April 10, 2017, 5:32am UTC](https://discuss.elastic.co/t/i-want-to-aggregate-the-json-log-events-how-do-i-filter-it-in-the-logstash/81743 "2017-04-10T05:32:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)
#### Post date: [April 10, 2017, 5:32am UTC](https://discuss.elastic.co/t/i-want-to-aggregate-the-json-log-events-how-do-i-filter-it-in-the-logstash/81743/1 "2017-04-10T05:32:08Z")

</div>

i want to aggregate the JSON log events,from the filebeats to logstash.  
i want to filter the warn ,error,info separately from the Log events  
How do i filter it in the logstash.  
Can anyone please guide me..

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [April 10, 2017, 5:37am UTC](https://discuss.elastic.co/t/i-want-to-aggregate-the-json-log-events-how-do-i-filter-it-in-the-logstash/81743/2 "2017-04-10T05:37:00Z")

</div>

This should get you on the right track: [https://www.elastic.co/blog/structured-logging-filebeat](https://www.elastic.co/blog/structured-logging-filebeat)

---

<div class="post-metadata">

### Author: ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)
#### Post date: [April 11, 2017, 11:12am UTC](https://discuss.elastic.co/t/i-want-to-aggregate-the-json-log-events-how-do-i-filter-it-in-the-logstash/81743/3 "2017-04-11T11:12:37Z")

</div>

As for i read , i dint get what i needed,can you guide me with something

---

<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: [May 9, 2017, 11:21am UTC](https://discuss.elastic.co/t/i-want-to-aggregate-the-json-log-events-how-do-i-filter-it-in-the-logstash/81743/4 "2017-05-09T11:21:30Z")

</div>

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