# Logstash- getting specific lines

**URL:** https://discuss.elastic.co/t/logstash-getting-specific-lines/181086
**Category:** Logstash
**Created:** [May 15, 2019, 12:17am UTC](https://discuss.elastic.co/t/logstash-getting-specific-lines/181086 "2019-05-15T00:17:50Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [May 15, 2019, 2:32pm UTC](https://discuss.elastic.co/t/logstash-getting-specific-lines/181086/2 "2019-05-15T14:32:22Z")

</div>

You can maintain state in an aggregate filter. [This post](https://discuss.elastic.co/t/aggregate-filter-push-on-event-size-limit/180875/2) has an example of collecting data in the map and then generating an event when some condition is met.

It is not a scaleable solution and is really not a use case logstash was designed for.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-getting-specific-lines/181086)._
