Questions about the Source attribute of Microsoft Windows Event Log Entries
Questions tagged [eventlog-source]
66 questions
1
vote
0 answers
Filtering EventLogs with C# by Date and Provider Name
I want to filter my Events Logs on Windows with C#.
I'm using this code bellow, that works fine only if I have one condition in query.
When I try to input more that one condition, I get the error:
The specified query is invalid
string…

Eduardo
- 1,698
- 4
- 29
- 48
1
vote
1 answer
Not EventLog dispose in Windows Service app using the Designer generated code is fine?
While creating a project using Windows Service VS2013 project template i noticed that after add an EventLog component from the tools box the #region named "Component Designer generated code" is filled with the following code:
private void…
user1785721
1
vote
1 answer
EventLogMsgs.mc - Building a resource file (DLL)
Currently I have a resource file that I use for my custom created event log. Everything seems to work perfectly when I write an event to the log with intentions of informational/success purposes. But when I write one of an Error intent I…

Arvo Bowen
- 4,524
- 6
- 51
- 109
1
vote
1 answer
Event Log name is other than "Application" but logs are written in "Application" Log
In my VB.NET application, I created a new Event Log Name named "My_Log", and I have this application run for a number of different situations where each situation is named by a unique name, and on logging, I create new Event Sources with these…

Anas Mousa
- 23
- 1
- 5
1
vote
2 answers
XPath greater than operator?
I'm trying to select all event log entries beyond a certain date. So far I think I got equals, but I don't know how to change this to greater than the specified date... so close yet so far!
…

codeputer
- 1,987
- 3
- 19
- 45
0
votes
1 answer
Get EventData from Get-WinEvent from File - How to group by EventData.Data?
An EventLog was exported from a server to a file named Exported_ErrorLog.evtx.
I would like to
filter all entries created in 2023
group by Text (see xml below)
and count
I am able to read from file (see Learn Powershell -…

surfmuggle
- 5,527
- 7
- 48
- 77
0
votes
1 answer
WiX toolset - EventSource sets wrong path to EventMessageFile (prepends "#%")
I have WiX 4.0 project. I'm using Util to create Windows EventLog event source. The problem is, the Registry entry to the EventMessageFile gets the path prepended with "#%". Therefore, the EventLog will display errors for events created by this…

Daniel Schmid
- 647
- 6
- 12
0
votes
0 answers
Capturing Sysmon Event Logs along with IP and MAC Address
Am using Sysmon to get logs and when the log is displayed for all the events i want it to also record the IP and MAC Address of the machine.

Vishnu R
- 1
0
votes
0 answers
What makes it possible to print a WriteEntry on a IDictionarty System.Collections.Generic.Dictionary`2[System.String,System.Object]
I have two properties of Type IDictionary
ConfigProperties and CustomProperties
Both have the same values set to them.
But one is set through a constructor and the other is from a method signature with help of a static method.
in…

Ahune ajé o ahe
- 121
- 9
0
votes
0 answers
How to read EventViewer logs of remote machine using c++?
It is about to collect logs of event viewer from the remote machine.I have tried Event Logging api so far. Though,It works well by reading logs from the localhost,was failed to read from remote machine.
HANDLE OpenEventLogA(
[in] LPCSTR…

Shyaam sundar
- 1
- 3
0
votes
1 answer
How long does it take for new Log Sources to take effect?
The EventLog.Source Property docs on MSDN state:
Create the new event source during the
installation of your application. This
allows time for the operating system
to refresh its list of registered
event sources and their…

Adrian K
- 9,880
- 3
- 33
- 59
0
votes
1 answer
How to get the log traces in angular 2+?
Can anyone tell is there any inbuilt module or way to fetch the event traces from event viewer in angular 2+ ? Like how we use system diagnostics Eventlogs extension to fetch traces in c#.
Thanks in advance

Naveen
- 5
- 2
0
votes
1 answer
How to read events from a Application and Services windows event source using C#?
I am trying to read windows event logs for: "Microsoft-Windows-Sysmon/Operational"
I tried:
string eventLogName = "Microsoft-Windows-Sysmon/Operational";
EventLog eventLog = new EventLog();
eventLog.Log = eventLogName;
…

Rahul
- 21
- 1
- 6
0
votes
0 answers
can ELMAH detect ASP.NET exception logged only in event log?
I configured ELMHA on my ASP.NET MVC application but still not able to see in ELMHA logs some exceptions that I have only in the EvenLogs as Warning (example below)
Event code: 3005
Event message: An unhandled exception has occurred.
Event…

CDominik
- 115
- 1
- 10
0
votes
1 answer
Simplest way to write a log message and display in Perfview
I need the to write a log message and capture that in PerfView. I would like to avoid using EventLog or EventSource because they are quite invasive: they require registering a new source or ETW provider, which leaves leftovers in the system.
Ideally…

fernacolo
- 7,012
- 5
- 40
- 61