event-log Questions
6
Solved
When I use the following code to write to Application Event log, everything works fine:
EventLog log = new EventLog();
log.Source = "Application";
log.WriteEntry("test message", EventLogEntryType....
Fino asked 31/10, 2011 at 23:26
3
Solved
I'm attempting to access a 'ForwardedEvents' events log on a server using
el = new EventLog("ForwardedEvents", serverName);
this isn't working.
I believe it's not working because the log isn't...
1
I have the following code:
string query = "???";
EventLogQuery elq = new EventLogQuery("Application", PathType.LogName, query);
elq.Session = new EventLogSession("x.x.x.x");
EventLogReader elr = ...
1
Question: How to write an event log entry with structured XML data using PowerShell?
My PowerShell script writes to the Windows event log using the Write-EventLog cmdlet. Currently I use the -Mess...
Spinozism asked 18/2, 2015 at 12:59
1
Solved
I'm using the Windows Event Log to record logs from a custom Windows Service.
If I need to read a log of say, yesterday, I go to the EventViewer, look for my EventLog and read it. But I'm afraid of...
Mathi asked 20/7, 2016 at 7:39
6
To debug some code, I would like to view the Windows event log of a remote machine (target is Windows2003). With mmc.exe I can add the event log for a remote machine, but only if I have sufficient ...
Vernacularism asked 6/1, 2009 at 18:11
4
Solved
I have an application that has created a number of custom event log sources to help filter its output. How can I delete the custom sources from the machine WITHOUT writing any code as running a qui...
1
Solved
I want to use log on my C++ application. However, I'd like to use Windows (10) event viewer, instead of text files. I found out some weird calls, that I don't even know what the parameters me...
Congou asked 4/5, 2016 at 19:4
4
Solved
I am trying to export a windows event log but limit the exported events not according to number but according to time the event was logged. I am trying to do that on windows 7 and newer. So far my ...
Boonie asked 16/10, 2012 at 13:43
2
Solved
I have a .NET Remoting service which works fine most of the time. If an exception or error happens, it logs the error to a file but still continues to run.
However, about once every two weeks the ...
Mattias asked 13/12, 2012 at 17:31
3
Solved
I have a library that I created with some business logic that includes writing to a System.Diagnostics.EventLog instance. The library is normally called from a Windows Service application, but now ...
Breakout asked 22/10, 2009 at 21:51
2
I have an ASP.Net app .net 3.5 SP1, running in Win7 . During the login process, something within the ASP.Net login control is causing a write to the security log (this sounds acceptable to me) in t...
1
I am working on application which logs to a custom event log. Application was recently rebranded, and the name of event log has changed (from "CompanyA Events" to "CompanyB Events"). The name(s) of...
Alidia asked 3/10, 2013 at 21:27
3
Solved
ASP.Net 3.5 running under IIS 7 doesn't seem to allow this out of the box.
if (!EventLog.SourceExists("MyAppLog"))
EventLog.CreateEventSource("MyAppLog", "Application");
EventLog myLog = new E...
Jinnyjinrikisha asked 13/11, 2008 at 2:6
1
We recently upgraded our production boxes to Windows 2008 from Windows 2003 servers. Everything works fine except the event logging. We log at max 32000 bytes of data for each message.
On 2008 ser...
1
Could someone help me out on how to generate an xes file from a csv file containing event logs. I tried many websites, tutorials but failing all the time.
Because, they aren't providing adequate i...
1
Solved
I have created an EventLog object in my application, that I use to log to my own log, created like this:
if (!System.Diagnostics.EventLog.SourceExists("MyApplication")) {
System.Diagnostics.Event...
2
Solved
Per our policy we are no longer allowed to write to event log, so I removed all my event log code from writing to the event log, which works, however I keep getting random ASP.NET 4.0 Warnings from...
Milks asked 11/1, 2012 at 18:24
4
Solved
I'm looking for a (fairly pain-free) means of adding some Windows Application Event-Log support to a small legacy Delphi 5 application. We just want it to log when it starts-up, shuts-down, fails t...
1
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?
3
Solved
My application needs to review all new application Event Log entries as they come in.
private void eventLog_Application_EntryWritten(object sender, EntryWrittenEventArgs e)
{
// Process e.Entry ...
Embraceor asked 16/4, 2015 at 13:57
2
Solved
I want to programmatically create a custom Eventlog view in a C# application.
This is how to create a custom Eventlog view with the help of the Eventlog application from Microsoft Windows:
I ...
3
Solved
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...
2
Solved
When using System.Diagnostics.Eventing.Reader.EventLogQuery to read events from the Windows Event Log, the EventRecord.FormatDescription() method sometimes returns null. Why is this? In the Event V...
12
Solved
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
...
Dwarfism asked 22/9, 2008 at 15:23
© 2022 - 2024 — McMap. All rights reserved.