Questions tagged [event-log]

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

1270 questions
8
votes
2 answers

Create Event Log in Sub Directory under Applications and Settings Logs

I have been searching for ages to find a way to create a number of separate event logs under a sub directory of Applications and Services Logs, in the same way that there is a subdirectory Microsoft then it has a subdirectory Windows then various…
Mike U
  • 2,901
  • 10
  • 32
  • 44
8
votes
1 answer

Reinitialize Windows Event Log service without reboot

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 event log sources ("Subsystem1", "Subsystem2", etc)…
galets
  • 17,802
  • 19
  • 72
  • 101
8
votes
4 answers

How to find out more about Application Hang event?

If a VB6 app is causing an Application Hang event to appear in the Event Viewer, how can I find out more about why the application is hanging? Does an Application Hang event mean that the app has frozen and crashed, or just that it temporarily…
CJ7
  • 22,579
  • 65
  • 193
  • 321
7
votes
3 answers

cannot find syslog.h on windows

I am rewriting a c program which was used to linux, now I'll reused it on windows, I write a bat file. I run this file as administrator, then error occurs: syslog.h:No such file or directory. Could you please give me some advices? thx.
diligent
  • 2,282
  • 8
  • 49
  • 64
7
votes
6 answers

How to add multiple lines of EventData to an EventLog in Windows?

I am able to currently create a Windows Event Log using the following code: string sSource; string sLog; string sEvent; sSource = "Sample App"; sLog = "Application"; sEvent = "Sample Event"; if…
Anoop
  • 71
  • 1
  • 1
  • 2
7
votes
2 answers

Write Event to Eventlog with powershell

I have a powershell script which i would like to add to the eventlog. When i type in the Write-Eventlog command i get a error message. Write-EventLog -Logname autosnapshot -Source 'D:\script autoSnapshots.ps1' -EventId 8000 -Entrytype Information…
7
votes
2 answers

Getting IIS application pool recycle events to be logged in the Windows Event Log

I am trying to get IIS 7 application pool recycle, start, stop, etc. events to be logged to the Windows Event Log. I followed the steps outlined in this article but didn't have any success. I restarted the application pool and nothing was logged in…
stackoverflowuser
  • 22,212
  • 29
  • 67
  • 92
7
votes
2 answers

Organizing eventlogs into folders

I want to create multiple services and I want them to log each in a log entry under the same directory/folder that I specify so when I open Windows Event Viewer I can see them all placed in one folder. For example service1 would log into…
Tomas
  • 127
  • 2
  • 6
7
votes
4 answers

How do I avoid this SecurityException when writing to the Event Log?

I can't seem to write to the event log in .NET. I get the following exception: System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security. I don't want to access the…
Jason Thompson
  • 4,643
  • 5
  • 50
  • 74
7
votes
1 answer

Generate an XES file from an event log in CSV format

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 information. Kindly help me.
vtammy
  • 115
  • 2
  • 8
7
votes
1 answer

EventLog logs in Application, even though set to another log

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.EventLog.CreateEventSource( "MySource",…
Bart Friederichs
  • 33,050
  • 15
  • 95
  • 195
7
votes
3 answers

What happens if a new Entry is written to the Event Log while the application is inside the handler for a previous entry being written?

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 } What I would like to know is what…
Eilidh
  • 1,270
  • 1
  • 13
  • 33
7
votes
4 answers

SQL Server Service cannot be started

I have been trying to install and start SQL Server 2012. I succeeded installing SQL Server 2012 Management Studio but I am still working to start its service. When I tried to start it I got an error The request failed or the service did not respond…
Uygar Kahraman
  • 115
  • 1
  • 2
  • 10
7
votes
1 answer

Write/Read to Windows Event Log

Is there an easy way to write to and read from the windows event log in VBA?
Nick
  • 3,573
  • 12
  • 38
  • 43
7
votes
5 answers

An event log source that's always available for writing?

Is there an event log source that's always available for writing by an ASP.NET webapp? Backstory, in case anyone has a seemingly unrelated solution: Our ASP.NET webapp uses its own event log source, but it doesn't have the rights to create it. So,…
lance
  • 16,092
  • 19
  • 77
  • 136