# How to write a Logstash Multi-line Pattern for the Windows Events

**URL:** <https://discuss.elastic.co/t/how-to-write-a-logstash-multi-line-pattern-for-the-windows-events/234913>\
**Category:** Logstash\
**Created:** [May 29, 2020, 12:38pm UTC](https://discuss.elastic.co/t/how-to-write-a-logstash-multi-line-pattern-for-the-windows-events/234913 "2020-05-29T12:38:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharmad](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@sharmad](https://discuss.elastic.co/u/sharmad)\
**Post date:** [May 29, 2020, 12:38pm UTC](https://discuss.elastic.co/t/how-to-write-a-logstash-multi-line-pattern-for-the-windows-events/234913/1 "2020-05-29T12:38:25Z")

</div>

can someone guide me to create a Multi-line Pattern for the below windows events with event ID and need to parse my log data

Event[0]:  
Log Name: Application  
Source: Desktop Window Manager  
Date: 2020-05-29T16:53:12.000  
Event ID: 9009  
Task: N/A  
Level: Information  
Opcode: N/A  
Keyword: Classic  
User: N/A  
User Name: N/A  
Computer:  
Description:  
The Desktop Window Manager has exited with code (0xd00002fe)

this is my file pattern

file {  
type =\> "logs"  
path =\> "D:/logs/syslogs\_\*.txt"  
codec =\> multiline {  
pattern =\> "^%{TIMESTAMP\_ISO8601}"

```
 }

```

}

---

<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:** [June 26, 2020, 12:38pm UTC](https://discuss.elastic.co/t/how-to-write-a-logstash-multi-line-pattern-for-the-windows-events/234913/2 "2020-06-26T12:38:26Z")

</div>

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