Zitoune has asked for the wisdom of the Perl Monks concerning the following question:
handle=Win32::EventLog->new("system",$ENV{ComputerName}); $handle->GetNumber($recs); $handle->GetOldest($base); while ( $x < $recs ) { $handle->Read(EVENTLOG_FORWARDS_READ|EVENTLOG_SEEK_READ,$base+$x +,$HashRef); if ( $HashRef->{Source} eq "EventLog") { Win32::EventLog::GetMessageText($HashRef); print FH "Entry $x : $HashRef->{Message}\n"; } else { Win32::EventLog::GetMessageText($HashRef); print FH2 "Entry $x : $HashRef->{Message}\n"; }
janitored by ybiC: Retitle from "Win32::EventLog" for better searching
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::EventLog to CSV
by traveler (Parson) on Feb 03, 2004 at 22:17 UTC | |
|
Re: Win32::EventLog to CSV
by Zitoune (Beadle) on Feb 05, 2004 at 14:46 UTC | |
by slloyd (Hermit) on Jun 09, 2005 at 19:20 UTC |