General discussion

Locked

Automating NT to save the eventlog

By dsaim ·
Can anyone help me out?
I would like to find out how I can save the event log to a file automatically. Is their any utilityor batch command that I can use to do this. I would like to collect EventLog from multiple computer if so posible. I wouldlike to automate this process on a dialy basis.

This conversation is currently closed to new comments.

10 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Automating NT to save the eventlog

by todd In reply to Automating NT to save the ...

The event logs are saved in multiple files. They can be found in c:\winnt\system32\config
I would just create a batch file that is scheduled to copy the log files you want to another directory.

Collapse -

Automating NT to save the eventlog

by dsaim In reply to Automating NT to save the ...

I have already tried to copy those events file to a different location but when I tried to open it, it say that it is a corrupted file.

Collapse -

Automating NT to save the eventlog

by dsaim In reply to Automating NT to save the ...

I have already tried to copy those events file to a different location but when I tried to open it, it say that it is a corrupted file.

Collapse -

Automating NT to save the eventlog

by McKayTech In reply to Automating NT to save the ...

I think your answer might be a utility in the NT Resource Kit called dumpel.exe. On the resource kit CD, it's in the /i386/diagnose directory.

This utility can pull the contents of the event logs into a central file. I'm currently working on a project to use this utility to pull the backup entries from 52 servers into a central text file.

Hope this helps!

paul

Collapse -

Automating NT to save the eventlog

by dsaim In reply to Automating NT to save the ...

Sorry, that was just not what i was looking for. I would like to save in an .evt format so I can later on open it with event viewer.

But thank you for your effort.

David

Collapse -

Automating NT to save the eventlog

by todd In reply to Automating NT to save the ...

I tried the same, and it worked for me. I opened event viewer, then selected open log file of the specified type.

Collapse -

Automating NT to save the eventlog

by dsaim In reply to Automating NT to save the ...

I gave it another tried on a different computer and it has the same result. I went into c:\winnt\system32\config\ and founf alt the evt file but was not able to open it. When I try yo open it the error message say 'the event log file is corrupted.
Well you must be doing something right. Please explain further.

Thank you,

David

Collapse -

Automating NT to save the eventlog

by todd In reply to Automating NT to save the ...

Ok. Exact Specifics. 1st I am running windows 2000 server.

I open event viewer. Click on Action, Open log file. Browse to winnt/system32/config.
Select the Sysevent.evt file and select log type as SYSTEM. and it opens up as a saved event log file.

Hmm. just tried something new. I made a copy of the evt file and tried to open the copy, and got the same error you did.

Interesting.
Let me play some more. I'll let you know my results.

Collapse -

Automating NT to save the eventlog

by dsaim In reply to Automating NT to save the ...

WEll thank you for trying to find the solution for my problem. I appreciate all the helps.

Collapse -

Automating NT to save the eventlog

by mike.phillips In reply to Automating NT to save the ...

There are a couple of freeware utilities I'm evaluating to automate an Event Log download to a database: 1) Exporter (Adkins Resource/www.adkins-resource.com) which has an easy-to-use command line structure, and 2) DumpEVT (Somarsoft/www.systemtools.com/somarsoft)which is also run from a command line.

I haven't worked out all the details, but both programs do a good job of exporting the logs to text files. Now all I've got to do is automate the importing of the text files into an MS Access database.

Back to Windows Forum
10 total posts (Page 1 of 1)  

Related Discussions

Related Forums