Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows 2000 Event Logs

Status
Not open for further replies.

DANZIG

Technical User
Joined
Mar 8, 2001
Messages
142
Location
US
Hellos,
I'm writing a script to write to the windows 2000 event log using the following script.
_____________________________________________________
my %FileEvent=(
'EventID',5150,
'EventType',EVENTLOG_WARNING_TYPE,
'Category',NULL,
'Strings',"INCORRECT FILE DEFFINETION FOR -> $list",
'Data',"FILE: $FName-$mon-$mday-$year-$hour-$min-$sec.$FExt Was Archived",);
$EventLog = new Win32::EventLog( 'Sample Monitor' );
$EventLog->Report(\%FileEvent);
_______________________________________________________

But the results written looks like this:
_______________________________________________________
The description for Event ID ( 5150 ) in Source ( Sample Monitor ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: INCORRECT FILE DEFFINETION FOR -> nav.xls.
_______________________________________________________


How can I get a clean event wo the log with out the dll errors and such so the out put similar to this.

_______________________________________________________
INCORRECT FILE DEFFINETION FOR -> nav.xls.
_______________________________________________________



Thanks In Advance 8)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top