Page 1 of 1 1
Topic Options
#63644 - 2002-03-07 06:05 PM Event Log
Anonymous
Unregistered


Does anyone have a script that would backup the Event logs (.evt) on remote servers? I'm interested in backing up the event logs for Application, Security, and System logs once a month to a backup folder on the servers hard drive.
Top
#63645 - 2002-03-08 03:33 PM Re: Event Log
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Use BACKUPEVENTLOG() under an administrative account. This function does remote copying of all Windows NT/2K/XP eventlogs.
_________________________
There are two types of vessels, submarines and targets.

Top
#63646 - 2002-04-03 02:34 PM Re: Event Log
Anonymous
Unregistered


Can anyone give me an example of a script using the Backup Event Log command?
Top
#63647 - 2002-04-03 03:58 PM Re: Event Log
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
from kixtart-doc:
BackupEventlog( “Application” , “C:\eventbackups\application.evt” )

BackupEventlog( “\\PDC\Application” , “C:\eventbackups\application.evt”)

BackupEventlog( “System” , “C:\eventbackups\system.evt”)
_________________________
!

download KiXnet

Top
#63648 - 2002-04-04 03:34 AM Re: Event Log
wrcwrx Offline
Fresh Scripter

Registered: 2002-03-12
Posts: 9
Loc: San Francisco, CA
does BACKUPEVENTLOG() work with Security Logs? I have had problems with backing up Security logs.
Top
#63649 - 2002-04-04 04:03 AM Re: Event Log
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Be careful with Lonkero's example having been ripped from the manual, as they are with curly quotes. Also, if you backup a remote log, it is backed up to the remote's disk, not the local one. That is, it is backed up to the disk of the computer who's log you are backing up.

And yes, it does backup the Security log.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#63650 - 2002-04-04 05:40 AM Re: Event Log
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You will need administrative privileges on the computer where the event logs are located. So, a global administrator account should be able to do the backups but not a global user.

You could schedule a task with 'Task Scheduler' that runs your event log backup script under an administrative account once a month.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.121 seconds in which 0.099 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org