# How to send log to windows event by using logstash ELK?

**URL:** <https://discuss.elastic.co/t/how-to-send-log-to-windows-event-by-using-logstash-elk/122656>\
**Category:** Logstash\
**Created:** [March 6, 2018, 7:13am UTC](https://discuss.elastic.co/t/how-to-send-log-to-windows-event-by-using-logstash-elk/122656 "2018-03-06T07:13:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yusuf\_Karatoprak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yusuf_karatoprak/32/44539_2.png) [@Yusuf\_Karatoprak](https://discuss.elastic.co/u/Yusuf_Karatoprak)\
**Post date:** [March 6, 2018, 7:13am UTC](https://discuss.elastic.co/t/how-to-send-log-to-windows-event-by-using-logstash-elk/122656/1 "2018-03-06T07:13:52Z")

</div>

I am working in a big company, we have lots of responsibility. one of them is to inform Network team. But they are can not understand ELK structure. They have a alert monitoring system that is working when our system is got stuck. They offer us to send logs from logstash to windowsevent. We accepted it. So I need a help with sending logs by using logstash output and grok filtering ( query= level:"Error" and eventid="1796"). Can you help me for this challenge? How can I send logs to windows event (Not from windows event to logstash. Please be careful) by using logstash and grok? My logstash config is :

```
`input {

```

file {  
type =\> "json"  
path =\> ["C:/Temp/logs/\*.json"]  
start\_position =\> "beginning"  
codec =\> "json"  
discover\_interval =\> 120  
stat\_interval =\> 60  
sincedb\_write\_interval =\> 60  
close\_older =\> 60  
}  
}  
filter {  
mutate {  
remove\_field =\> ["path"]

}  
}  
output {  
stdout {  
codec =\> rubydebug  
}

```
elasticsearch {
   hosts => ["http://loguser:xxyyzz_2017@192.168.1.92:333"]
   index => "logstash-%{+YYYY.MM}"
}

```

}`

---

<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:** [April 3, 2018, 7:14am UTC](https://discuss.elastic.co/t/how-to-send-log-to-windows-event-by-using-logstash-elk/122656/2 "2018-04-03T07:14:10Z")

</div>

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