Top "Event-log" questions

An event log is a file used to record a timeline of events along with contextual metadata

What is the most reliable way to create a custom event log and event source during the installation of a .Net Service

I am having difficulty reliably creating / removing event sources during the installation of my .Net Windows Service. Here is the …

c# .net windows-services event-log eventlog-source
Using XPath starts-with or contains functions to search Windows event logs

By editing the XML filter query manually in Windows event viewer, I can find events where the data matches a …

xml windows powershell xpath event-log
How do you create an event log source using WiX

I'm creating an installer for a website that uses a custom event log source. I would like our WiX based …

wix event-log eventlog-source
C# EventLog Inaccessible Log

Below is an exception I encountered while running the immediately following code: The source was not found, but some or …

c# windows exception event-log
Error while writing to event log, prevents windows service from starting?

I am using the following code to create a custom event log in my windows service application: public ServiceConstructor() { InitializeComponent(); …

c# windows-services event-log
Read Event Log Remotely with .NET

I want to read the Event Log on a remote computer to check for errors during testing. Here's some relevant …

c# .net permissions event-log
What is the best way to write event log entries?

I recently had a problem during the deployment of a windows service. Four computers did not cause any problems, but …

.net event-log
Which approach is better to read Windows Event log in C#? WMI or EventLog

I need to write an application to grab event log for System/Applications. The other requirement is that I need …

c# windows wmi logging event-log
Writing to event log in C# - do I need to use EventLog.CreateEventSource when writing to Application log?

When I use the following code to write to Application Event log, everything works fine: EventLog log = new EventLog(); log.…

c# event-viewer event-log