Questions about the Source attribute of Microsoft Windows Event Log Entries
Questions tagged [eventlog-source]
66 questions
3
votes
2 answers
Tracing to LogSource 'All Events' failed. Enterprise Library logging error
I am getting error. I am unable to understand what causing error. There are no exception on UI.
Category tables has values (Information,Exception,Debug,General). When all events failed error occurs there is no record entered into CategoryLog table.…

Sachin
- 33
- 1
- 3
3
votes
2 answers
How can I remove all events from the Application Event Log for just one source?
I'm using the application event log to write messages about activity happening in my program. I set the source to the name of my app. I would like to offer the user the ability to clear just the events related to my program. Is this possible? I only…

Jon B
- 51,025
- 31
- 133
- 161
2
votes
0 answers
Reading an exported evtx event log file in an Azure Function
I am trying to read an exported evtx event log file in an Azure Function.
I receive the file content as a byte array and then write to a temporary file.
I then try to create an instance of EventLogReader from the…

robhurry
- 21
- 1
2
votes
0 answers
How to write events from multiple applications(sources) to the same event log?
I have created a custom event log and would like all my applications to write to the same event log. As you can see below in the image attached, DistributedCOM and Svc Ctrl Mgr are 2 sources writing to the same event log System.
Similarly, I have…

Akshatha
- 592
- 1
- 11
- 28
2
votes
2 answers
Can I count on this ASP.NET event log source always being registered?
Unhandled exceptions cause ASP.NET-based applications to unexpectedly quit in the .NET Framework 2.0 makes me think that an event log source named with the following convention will always be registered on any box where the .NET Framework has been…

lance
- 16,092
- 19
- 77
- 136
1
vote
1 answer
How to find if event source is created?
I am using the sample code to create event source:

Mark
- 2,181
- 3
- 19
- 28
1
vote
1 answer
How to capture events from ETW provider "Microsoft-Windows-Security-Auditing" in real time session?
I'm recently using ETW to collect events from builtin providers. I use logman to consume events and save them to a .etl file, like this:
logman create trace evt -p Microsoft-Windows-RPC -ets
...After some operation
logman stop evt -ets
Then I got…

1c3
- 11
- 2
1
vote
1 answer
Signalr Logging
After enabled Logging of SignalR component through adding a section to the web.config of my app, i've experienced the following problems:
if logging is configured to log into a text file, it works fine, but no date / time is…

Manfred
- 11
- 1
1
vote
2 answers
.NET Runtime does not show up in LogNames
Does anyone have an idea why the '.NET Runtime' Event source does not behave like a normal event source?
var logCheckOne = EventLog.Exists(".NET Runtime");
var logCheckTwo = EventLogSession
.GlobalSession
…

Bitfiddler
- 3,942
- 7
- 36
- 51
1
vote
1 answer
BAT file will NOT run in Windows 10 Task Scheduler but WILL run as Admin or in elevated comand prompt
My BAT file (below) runs perfectly when I run it from an elevated command prompt or Right-Click -> Run as Administrator. However, when I put it in my Windows 10 Task Scheduler, it will not run.
What I've tried:
-- Security Options of the task: …

JasonRobi
- 31
- 2
1
vote
3 answers
Windows event log service holding executable file handle
I have a service application that on startup and shutdown logs an event log record.
I rebuild the application frequently and also then the executable on the host machine. And here is the problem, after my service shutdown the Windows Eventlog…

ROAR
- 1,304
- 1
- 11
- 28
1
vote
1 answer
ETW hierarchical activity IDs only working when PerfView is collecting at the same time
After trying to get ETW activity tracking working in my project for quite a while without much success, I figured I should take a step back and see if the demo project by Microsoft, available on this page was working for me. Unfortunately, it wasn't…

Yuk
- 101
- 1
- 3
- 7
1
vote
2 answers
Azure Websites and Event Logs
I've an ASP.NET application I'm trying to migrate to an Azure website (shared).
In its current form this uses the Event Log to record exceptions.
On Azure websites I can't write to the Event Log so I get an exception trying to record the…

MTuk
- 179
- 1
- 9
1
vote
0 answers
Nlog type EventLog not showing entries in Event Viewer
I'm using NLog in my MVC Web Api application. I installed NLog using NuGet package manager and configured my log target in Nlog.conf file which got created.

kaysush
- 4,797
- 3
- 27
- 47
1
vote
1 answer
Is it possible to specify an event category for Windows EventLogs in code?
I am looking for a way not to use Message Files, as I don't want the mess that comes with it.
I would like to be able to write events using a method similar to
public void WriteEvent(EventLogEntryType type, string description, int eventId, int…

Northern Pole
- 169
- 2
- 12