473,499 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query Local Event Log (with WMI)?


Different parts of a locally-installed application write to the same
custom event log. I would like to query the log and write the data to
an XML string. Can anyone show how that could be done?

Thanks.

Jun 27 '08 #1
2 1535
Hello,

from .NET you can use the EventLog class. It has an Entries property giving
you access to the entries.

Kind regards,
Henning Krause

"coconet" <co*****@community.nospamwrote in message
news:5b********************************@4ax.com...
>
Different parts of a locally-installed application write to the same
custom event log. I would like to query the log and write the data to
an XML string. Can anyone show how that could be done?

Thanks.
Jun 27 '08 #2
Done deal, thanks.

On Mon, 28 Apr 2008 19:58:53 +0200, "Henning Krause [MVP - Exchange]"
<ne***************@this.infinitec.dewrote:
>Hello,

from .NET you can use the EventLog class. It has an Entries property giving
you access to the entries.

Kind regards,
Henning Krause

"coconet" <co*****@community.nospamwrote in message
news:5b********************************@4ax.com.. .
>>
Different parts of a locally-installed application write to the same
custom event log. I would like to query the log and write the data to
an XML string. Can anyone show how that could be done?

Thanks.
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
14565
by: Mark Hoffman | last post by:
I'm a newbie at Oracle..Be gentle! I have a table that stores information (WMI data) about computers on our network. The table looks like: ComputerID ItemID Class Property Value
2
2734
by: Alexander Wehrli | last post by:
Hi all, I wanted to design a wmi query that returns me a list of all "real" user accounts defined on the local machine. As you may know, the accounts are defined in win32_account. The field...
0
2290
by: David | last post by:
Hi, I have a problem about my ASP .NET App(C# .NET) to query SMS2003 via WMI. My web server is IIS 6.0 on Win2003 Svr SP1(Domain Controller-AD + SMS2003 SP1). In my btn_cliclk method, my...
6
1846
by: Christopher C | last post by:
I am currently working on an app the will be a shell replacement. Part of the goal is to list the current network status; basically I need to know if the network card is plugged in. I am currently...
7
3317
by: gel | last post by:
Below is how it is down with vbscript. What is the best way to convert this to python? strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" &...
9
7746
by: Adrian Dev | last post by:
Hi, I have succesfully used a ManagementScope object to get WMI information about workstations on the current domain using "//xp10/root/cimv1". But if I make a request to a workstation on a...
3
6796
by: Marc Gravell | last post by:
I would like to query (where possible) the power consumption of the local PC. Obviously this requires hardware support, but similar apps leads me to believe that this is possible. I looked at wmi...
6
10055
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using vs2005 and .net 2.0. I currently prcoess each Security Log entry one by one to extract those that fit the selection criteria. Is there a function that I can use to query the entries...
0
847
by: mrig123 | last post by:
Hi, I am searching for ways to create event query combining two wmi classes. How can I do that? Please reply. Regards, Mrig123
0
7132
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.