|
|
|||||||
I trying to figure out a way to monitor my event logs in 1 hour intervals on each server and then write the logs to a file or files, appending the last. Then I will clear the log after complete. If the one hour intervals can't be done or will cause to much traffic the I can use the AT command to can kick the program off once a day, but if there is a better way I am open.
|
||||||||
|
|
|||||||
Working on it... Have you tried to use the "Dumpel" tool from the resource kit ? |
||||||||
|
|
|||||||
No I have not. I give it a shot and see what it does. Currently I have been messing arourd with the "backupeventlog" function and cleareventlog, but have not really got them to function yet. |
||||||||
|
|
|||||||
Hi USX, This is what I've come up with.. Hope it helpes ya!! [This message has been edited by ernie (edited 30 January 2001).] |
||||||||
|
|
|||||||
code: If you need Dumpel you can download it here: http://download.microsoft.com/download/win2000platform/WebPacks/1.00.0.1/NT5/EN-U S/Dumpel.exe Greetz, Bert. [This message has been edited by ernie (edited 30 January 2001).] [This message has been edited by ernie (edited 31 January 2001).] |
||||||||
|
|
|||||||
THX Ernie This looks great! Thanks Again |
||||||||
|
|
|||||||
Ernie, Nice script, I just have one small addition if you don't mind... If you want to see the actual event log files and maybe import them into a database, then instead of deleting the system.txt files etc. Add in the following: shell "%comspec% /c ren application.txt @wksta.@mdayno@month@year.application.prn" This of course would only work if you did it once a day/week etc. I am not good enough to modify your whole script, maybe someone could have a wee play. The *.prn files are Space Delimited (open with Excel) Anyway, thanks again for the nice script. dephier |