# Re: ruby eventlog monitor for windows

**URL:** <https://www.ruby-forum.com/t/re-ruby-eventlog-monitor-for-windows/58770>\
**Category:** Ruby\
**Created:** [April 25, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/re-ruby-eventlog-monitor-for-windows/58770 "2006-04-25T19:47:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [April 25, 2006, 7:47pm UTC](https://www.ruby-forum.com/t/re-ruby-eventlog-monitor-for-windows/58770/1 "2006-04-25T19:47:45Z")

</div>

> Something like an event viewer yet very powerful,

require ‘win32/eventlog’  
include Win32

# Tail the event log

EventLog.open(‘Application’).tail{ |log|  
p log  
}

# Read an event log

EventLog.read(‘Application’){ |log|  
p log  
}

Regards,

Dan

This communication is the property of Qwest and may contain confidential  
or  
privileged information. Unauthorized use of this communication is  
strictly  
prohibited and may be unlawful. If you have received this communication  
in error, please immediately notify the sender by reply e-mail and  
destroy  
all copies of the communication and any attachments.
