Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to retrieve the full text of an eventlog message, i.e. the text that you see if you use eventvwr and double-click an entry.
If I use GetMessageText and print the Message field I retrieve the full messages for certain sources (eg. DnsApi, NETLOGON, BROWSER), and nothing for other sources (eg. w32time, WMI, b57w2k (broadcom nic driver)
Win32::EventLog::GetMessageText($hashRef); print "Entry $x: $hashRef->{Message}\n";
Example: w32time
From an eventvwr dump to text: "The Windows Time Service was not able to find a Domain Controller. A time and date update was not possible. " From GetMessageText and {Message}: Nothing
Does anyone have any idea why I can retrieve the message for certain sources and not others?
Any help would be gratefully appreciated.
Thanks,
Greg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::EventLog *complete* message retrieval
by NetWallah (Canon) on May 27, 2004 at 05:43 UTC | |
by Anonymous Monk on May 29, 2004 at 12:38 UTC |