# Process events from split

**URL:** https://discuss.elastic.co/t/process-events-from-split/314564
**Category:** Logstash
**Created:** [September 16, 2022, 9:41am UTC](https://discuss.elastic.co/t/process-events-from-split/314564 "2022-09-16T09:41:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sirReeall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sirreeall/32/94713_2.png) [@sirReeall](https://discuss.elastic.co/u/sirReeall)
#### Post date: [September 16, 2022, 9:41am UTC](https://discuss.elastic.co/t/process-events-from-split/314564/1 "2022-09-16T09:41:26Z")

</div>

Is it possible to have logstash process the events generated from a split?

For example, give the following:

```auto
2022-09-06 23:39:01.034+0000 INFO [my.java.class] Process started \n
   some lines \n
   some more lines \n
   process is fined \n

```

Using multiline the above is combine into a single event. Multiline is also used because java stack traces need to be handled.

```auto
codec => multiline {
      pattern => "^%{TIMESTAMP_ISO8601} "
      negate => true
      what => previous
      # Some logs contain a large amount of multiline data
      max_lines => 2000
    }

```

Then I can split the above event into smaller events:

```auto
split {
  field => "message"
}

```

This will generate four events, one per line in the original. I then wanted to process these events further. Is this possible?

---

<div class="post-metadata">

### Author: ![sirReeall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sirreeall/32/94713_2.png) [@sirReeall](https://discuss.elastic.co/u/sirReeall)
#### Post date: [September 16, 2022, 10:01am UTC](https://discuss.elastic.co/t/process-events-from-split/314564/2 "2022-09-16T10:01:34Z")

</div>

Actually looks like they are processed 🙂

---

<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: [October 14, 2022, 10:02am UTC](https://discuss.elastic.co/t/process-events-from-split/314564/3 "2022-10-14T10:02:12Z")

</div>

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