Sorry if this question was posted before, but I did a search and it did not give me the details I needed.
I have an environment of 4 servers (2 Server 2008 and 2 Server 2003) that I would like to run some kind of a script to copy the event logs (Applications, System, and Security) logs to a remote location with a directory that will have the date listed.
I do have domain admin rights on the boxes.
Can someone please provide some help in this area?
Thank you for your time!
for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dt=%%i-%%j-%%k-%%l
for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set dtd=%%j%%k%%l
for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i
"C:\Program Files\Event Log Explorer\elback.exe" "C:\Documents and Settings\Administrator.OUR
C:\Util\7zip\7za a -y "e:\event log backups\servers\SERV005-%d
C:\Util\7zip\7za a -y "e:\event log backups\servers\SERV010-%d
C:\Util\7zip\7za a -y "e:\event log backups\servers\SERV011-%d
C:\Util\7zip\7za a -y "e:\event log backups\servers\SERV012-%d
C:\Util\7zip\7za a -y "e:\event log backups\servers\SERV013-%d
del "e:\event log backups\servers\*.evt" >selogbu.txt
dir "e:\event log backups\servers\*.*" >>selogbu.txt
This use three utilities
1. ELBACK from Event Log Viewer
2. 7ZIP command line Free
3. Febooti batch SMTP email
I run this one a week and then it emails me a report files are zipped up to conserve disk space.
There are other utilities you can use but this script can be modified to use your utils