Hi Greg,
I think you can search eventlog samples on google.
Also, there are many code samples in
www.codeproject.com, you can
search eventlog keyword on it.
Hope this helps
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| From: "Greg Smith" <gj*@umn.edu>
| References: <u1************ **@tk2msftngp13 .phx.gbl>
<#x************ **@TK2MSFTNGP10 .phx.gbl>
| Subject: Re: Reading The Event Log On a Remote System
| Date: Wed, 10 Sep 2003 09:15:07 -0500
| Lines: 36
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <Oq************ **@TK2MSFTNGP11 .phx.gbl>
| Newsgroups:
microsoft.publi c.dotnet.framew ork.adonet,micr osoft.public.do tnet.languages. c
sharp
| NNTP-Posting-Host: gregorio.med.um n.edu 160.94.110.50
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl
microsoft.publi c.dotnet.langua ges.csharp:1837 72
microsoft.publi c.dotnet.framew ork.adonet:6074 3
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| Thank you for your response. This was helpful but due to the fact that I
am
| still fairly new to C# I would really benefit from looking at some sample
| code. Do you know of any?
|
|
| "Nicholas Paldino [.NET/C# MVP]" <ni************ **@exisconsulti ng.com>
wrote
| in message news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
| > Greg,
| >
| > You can use the EventLog class to read the event log. There is a
| > constructor which takes two strings. The first is the name of the event
| log
| > to read. The second is the name of the machine to open the event log
on.
| >
| > Hope this helps.
| >
| >
| > --
| > - Nicholas Paldino [.NET/C# MVP]
| > -
ni************* *@exisconsultin g.com
| >
| > "Greg Smith" <gj*@umn.edu> wrote in message
| > news:u1******** ********@tk2msf tngp13.phx.gbl. ..
| > > I have an old application that analyzes the data in the event log on
one
| > of
| > > our servers. I would like to convert it to C#. Does anybody know of
| any
| > > examples of reading the event log on a remote system in C#.
| > >
| > > Any help is greatly appreciated.
| > >
| > >
| >
| >
|
|
|