in reply to Re: Win32::EventLog->Backup(), appending contents of new log to a saved one.
in thread Win32::EventLog->Backup(), appending contents of new log to a saved one.
Thanks for the suggestion, I probably should have mentioned in the question that I tried appending the entire log, using the code
open (FH1,">>C\:\\Users\\Administrator\\Desktop\\Perl\_Scripts\\831203 +2\_Security\.evtx"); open (FH2,"<C\:\\Users\\Administrator\\Desktop\\Perl\_Scripts\\8312032 +\_System\.evtx"); while (<FH2>) { print FH1 $_; } close (FH1); close (FH2);
When I did this, the security log size increased in proportion
But I was not able to see any of the appended events from system when I opened security log using the Event viewer utility in windows.
There is also a bit of a logic problem with this method, but im sure that can be resolved if it works
Could it be that the log files are terminated and the Viewing utility stops reading after some sort of terminator??
Any insight will be very helpful
Whether the log file exists is displayed by the $^E variable in the case(So i think that part is ok).Any other ways to do it would be appreciated, but im still trying to figure out how to append to a saved log though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Win32::EventLog->Backup(), appending contents of new log to a saved one.
by Anonymous Monk on Jan 12, 2011 at 14:30 UTC |