Re: event logs

From: Eddy (no@more.spam)
Date: 01/02/03


From: Eddy <no@more.spam>
Date: Thu, 02 Jan 2003 07:58:22 -0800


I use Dumpel (dump event log). You can get it here:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/dumpel-o.asp

I use task scheduler to run it and email it to me from the server. I
get the event logs from a lot of servers this way without visiting the
site or having to vpn in.

Here is what one of my events.cmd files looks like:

@echo off
Echo лллллллллллллллллллллллллллллллллллллллллллллл
Echo лл System Security and Application Events лл
Echo лл Being Saved in Tab Delimited Format лл
Echo лллллллллллллллллллллллллллллллллллллллллллллл
dumpel -f C:\events\server_sys.xls -s \\server -l system -d 7
dumpel -f C:\events\server_sec.xls -s \\server -l security -d 7
dumpel -f C:\events\server_apps.xls -s \\server -l application -d 7
echo.
sleep 2
Echo лллллллллллллллллллллллллллллллллллллллллллллл
Echo лл Event Logs Saved As Excel Files лл
Echo лллллллллллллллллллллллллллллллллллллллллллллл
Echo лл Adding Current Date To File Name лл
Echo лллллллллллллллллллллллллллллллллллллллллллллл
datefile C:\events\server_sys.xls
datefile C:\events\server_sec.xls
datefile C:\events\server_apps.xls
echo.
sleep 2
Echo лллллллллллллллллллллллллллллллллллллллллллллл
Echo лл Email excel files to Admin лл
Echo лллллллллллллллллллллллллллллллллллллллллллллл
sendsmtp @c:\scripts\email_events.txt
echo.
Echo лллллллллллллллллллллллллллллллллллллллллллллл
Echo лл Operations Complete лл
Echo лллллллллллллллллллллллллллллллллллллллллллллл

The system name has been replaced with the name "server".

The other files it uses are "sleep.exe" (which adds pauses for timing
issues) and "Datefile.vbs" which parses and adds the date to the
filename.

I email the .xls files to me using SendSMTP from Greyware:
http://www.greyware.com

Enjoy.

P.S. Dumpel does not export the DNS event log. There are other tools
for that.

On Thu, 2 Jan 2003 05:38:27 -0800, "Russell" <russtym@msn.com> wrote:

>Is there a way to get it to do it automatically?
>
<< snip >>



Relevant Pages

  • Windows event log event not being emailed
    ... event is seen in Nagios event log, ... nagios server service definition is below: ... @echo off ... echo Anhalten und Deinstallieren des Service "eventlog_agent" ...
    (RedHat)
  • Re: Parsing file using FOR command not working correctly
    ... @echo off ... I'm trying to extract just the Event Log ... >Here's the output of my batch file: ... Windows: General MVP ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Parsing file using FOR command not working correctly
    ... > Using the FOR command, I'm trying to extract just the Event Log ... ECHO %Num% ...
    (microsoft.public.win2000.cmdprompt.admin)
  • how can i check for an empty collection?
    ... i want to check the event log for a specific event id. ... chances are it wont exist. ... if it does NOT exist i need to echo "not found" if it does exist i need to echo the date property of the event, but only for the first one found, then i can exit. ...
    (microsoft.public.scripting.vbscript)
  • Re: WEB SITE PROJECT DEPLOYMENT ~ Help please??
    ... ECHO When/If prompted with the question: ... The files are all now sitting on my Server, and when I load my web site, ... An error has occurred while establishing a connection to the server. ... The connection string specifies a local Sql Server Express instance using ...
    (microsoft.public.dotnet.framework.aspnet)