# Logstash Windows Event Logging

**URL:** <https://discuss.elastic.co/t/logstash-windows-event-logging/36469>\
**Category:** Logstash\
**Created:** [December 6, 2015, 2:26pm UTC](https://discuss.elastic.co/t/logstash-windows-event-logging/36469 "2015-12-06T14:26:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![usmanjamali90](https://avatars.discourse-cdn.com/v4/letter/u/c2a13f/32.png) [@usmanjamali90](https://discuss.elastic.co/u/usmanjamali90)\
**Post date:** [December 6, 2015, 2:26pm UTC](https://discuss.elastic.co/t/logstash-windows-event-logging/36469/1 "2015-12-06T14:26:46Z")

</div>

EventLog plugin not ingesting previous logs (log events that were registered before running the logstash). I am running it from command line and it is ingesting the new events.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 6, 2015, 8:39pm UTC](https://discuss.elastic.co/t/logstash-windows-event-logging/36469/2 "2015-12-06T20:39:45Z")

</div>

You haven't given us much information. Is this a problem for you? Do you want some help?

If you want help, what version are you on? What Windows version? What does your config look like?

---

<div class="post-metadata">

**Author:** ![usmanjamali90](https://avatars.discourse-cdn.com/v4/letter/u/c2a13f/32.png) [@usmanjamali90](https://discuss.elastic.co/u/usmanjamali90)\
**Post date:** [December 7, 2015, 7:13am UTC](https://discuss.elastic.co/t/logstash-windows-event-logging/36469/3 "2015-12-07T07:13:41Z")

</div>

Hi Mark, Yes I am facing this problem. I want to ingest all the events from the beginning but it only ingests new windows events. I am using logstash 2.0 with elastic search 2.0.

My config is:  
input {  
eventlog {  
type =\> 'Win32-EventLog'  
logfile =\> 'Security'  
}  
}  
output {  
elasticsearch { hosts =\> localhost  
index =\> 'windows\_security'}  
stdout { codec =\> rubydebug }  
}

---

<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:** [July 6, 2017, 5:19am UTC](https://discuss.elastic.co/t/logstash-windows-event-logging/36469/4 "2017-07-06T05:19:47Z")

</div>


