# How to consider multiple lines(starts with Timestamp all the time) as a single event?

**URL:** <https://discuss.elastic.co/t/how-to-consider-multiple-lines-starts-with-timestamp-all-the-time-as-a-single-event/81132>\
**Category:** Logstash\
**Created:** [April 4, 2017, 11:32am UTC](https://discuss.elastic.co/t/how-to-consider-multiple-lines-starts-with-timestamp-all-the-time-as-a-single-event/81132 "2017-04-04T11:32:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajesh](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rajesh](https://discuss.elastic.co/u/rajesh)\
**Post date:** [April 4, 2017, 11:32am UTC](https://discuss.elastic.co/t/how-to-consider-multiple-lines-starts-with-timestamp-all-the-time-as-a-single-event/81132/1 "2017-04-04T11:32:52Z")

</div>

20170315:08:00:34:022156 xxxxx-[INFO]:-Dump status report  
20170315:08:00:34:022156 xxxxx-[INFO]:----------------------------------------------------  
20170315:08:00:34:022156 xxxxx-[INFO]:-Target database = xxx  
20170315:08:00:34:022156 xxxxx-[INFO]:-Dump subdirectory = xxx  
20170315:08:00:34:022156 xxxxx-[INFO]:-Dump type = Full database  
20170315:08:00:34:022156 xxxxx-[INFO]:-Clear old dump directories = Off  
20170315:08:00:34:022156 xxxxx-[INFO]:-Dump start time = xxx  
20170315:08:00:34:022156 xxxxx-[INFO]:-Dump end time = 08:00:08  
20170315:08:00:34:022156 xxxxx-[INFO]:-Status = COMPLETED  
20170315:08:00:34:022156 xxxxx-[INFO]:-Dump key = 2xxx  
20170315:08:00:34:022156 xxxxx-[INFO]:-Dump file compression = Off  
20170315:08:00:34:022156 xxxxx-[INFO]:-Vacuum mode type = Off  
20170315:08:00:34:022156 xxxxx-[INFO]:-Exit code zero, no warnings generated  
20170315:08:00:34:022156 xxxxx-[INFO]:----------------------------------------------------  
20170315:08:00:34:022156 xxxxx-[INFO]:-Dumping master config files

---

<div class="post-metadata">

**Author:** ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)\
**Post date:** [April 4, 2017, 9:42pm UTC](https://discuss.elastic.co/t/how-to-consider-multiple-lines-starts-with-timestamp-all-the-time-as-a-single-event/81132/2 "2017-04-04T21:42:22Z")

</div>

Check out the multiline timestamp example below.

[https://www.elastic.co/guide/en/logstash/current/plugins-codecs-multiline.html](https://www.elastic.co/guide/en/logstash/current/plugins-codecs-multiline.html)

---

<div class="post-metadata">

**Author:** ![rajesh](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@rajesh](https://discuss.elastic.co/u/rajesh)\
**Post date:** [April 9, 2017, 3:30pm UTC](https://discuss.elastic.co/t/how-to-consider-multiple-lines-starts-with-timestamp-all-the-time-as-a-single-event/81132/3 "2017-04-09T15:30:04Z")

</div>

Right, but there is no specific indicator for me to consider multi lines as a single event. By looking at the above example, can you please specify how I can use an indicator or a regex pattern?

---

<div class="post-metadata">

**Author:** ![jkuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkuang/32/72637_2.png) [@jkuang](https://discuss.elastic.co/u/jkuang)\
**Post date:** [April 10, 2017, 5:26pm UTC](https://discuss.elastic.co/t/how-to-consider-multiple-lines-starts-with-timestamp-all-the-time-as-a-single-event/81132/4 "2017-04-10T17:26:12Z")

</div>

The pattern should be

```auto
codec => multiline {
      pattern => "^\d\d\d\d\d\d\d\d:\d\d:\d\d:\d\d:\d\d\d\d\d\d
      negate => true
      what => previous
    }

```

---

<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 8, 2017, 5:33pm UTC](https://discuss.elastic.co/t/how-to-consider-multiple-lines-starts-with-timestamp-all-the-time-as-a-single-event/81132/5 "2017-05-08T17:33:55Z")

</div>

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