An event log is a file used to record a timeline of events along with contextual metadata
Questions tagged [event-log]
1270 questions
31
votes
2 answers
EventLog write permissions
My question is related to write permissions to the Windows Event Log.
I have looked around several posts concering this, and have found some ways to solve my problem, but none of these are acceptable for my current scenario.
I use C# in .NET 4.0. I…

Mats Magnem
- 1,375
- 1
- 10
- 21
30
votes
1 answer
ASP.Net Core 1 Logging Error - The description for Event ID xxxx from source Application cannot be found
I would like to write to the Windows Event Log from an ASP.Net Core application's Controller method.
The issue I have is that, where I expect log information to be written I keep getting the error/information log:
The description for Event ID xxxx…

tinonetic
- 7,751
- 11
- 54
- 79
28
votes
3 answers
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 string exactly:

Keith Walton
- 5,211
- 6
- 39
- 53
25
votes
4 answers
How to write from Java to the Windows Event Log?
How can I write from Java to the Windows Event Log?

Svet
- 3,555
- 8
- 28
- 23
25
votes
7 answers
ETW, .NET 4.5 - how to write to the event log?
I am trying to wrap my head around ETW and how to integrate t into a high Performance application.
We all know the old dreaded EventLog with it's non structured (and thus not so optimal) API.
Now there is a new and fancy API for high performance…

TomTom
- 61,059
- 10
- 88
- 148
25
votes
12 answers
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 code from my ProjectInstaller class:
// Create Process Installer
ServiceProcessInstaller spi = new…

Jason Stevenson
- 4,004
- 3
- 29
- 49
24
votes
1 answer
Writing to the Windows Event Log using Delphi
How can my Delphi app easily write to the Windows Event Log?
What is the difference between TEventLogger and ReportEvent?
How do I use the ReportEvent function?

Kobus Smit
- 1,775
- 2
- 18
- 30
24
votes
2 answers
How do I create a hierarchy of lognames in the Windows event system?
I am logging messages using Enterprise Library.
I want some of these (typically errors and warnings) to be passed to the Windows event-system). I today route these via entlib.config.
This solution works and so far, so good. But, I have more…

Spiralis
- 3,232
- 2
- 39
- 53
23
votes
4 answers
Powershell get-eventlog message column is too short
When using powershell to retrieve info about events Message column gets trimmed and is too short:
Index Time Type Source EventID Message
----- ---- ---- ------ ------- -------
2 Sep 18 12:50 …

Arnis Lapsa
- 45,880
- 29
- 115
- 195
21
votes
3 answers
Can I list all registered event sources?
My windows service writes to the event log, but I've had various problems getting this correct. So in the process I used a number of different names. I followed an article describing how to set up event logs in windows services. So after adding an…

Kasper Hansen
- 6,307
- 21
- 70
- 106
18
votes
1 answer
Configuring a custom event log for log4net
I'm using log4net for logging (duh!). Using the EventLogAppender, I can configure my application name, so that my events will show up in the Application/"My Application Name" event log. However, I'd like to log events to "Some other event log"/"My…

Jonas Lincoln
- 9,567
- 9
- 35
- 49
17
votes
2 answers
Write an Event to the Event viewer
I found an example in C# how to add new Event to the Event Viewer.
But, I need an example written in C++ (not .NET) that create new Event to the Event Viewer under the "Application" part.

Moti
- 897
- 4
- 12
- 21
17
votes
3 answers
What are best practices for event id management?
I'm trying to figure out how to manage my event ids. Up to this point I've been putting each event id in each method manually with each step in a method numbered sequentially. This doesn't allow me to effectively filter events in the event log. …

BobTheBuilder
- 2,455
- 2
- 27
- 39
17
votes
3 answers
Powershell - Tail Windows Event Log? Is it possible?
How can i use powershell to tail a specific windows event log?
Is it possible?

TheOneTeam
- 25,806
- 45
- 116
- 158
16
votes
6 answers
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 on the fifth any attempt to start the service failed due to an exception. The exception stack trace is written to the event log, so I…

Treb
- 19,903
- 7
- 54
- 87