Questions tagged [event-viewer]

Event Viewer - tool in Windows systems that allows users to inspect the event logs.

Event Viewer - tool in Windows systems that allows users to inspect the event logs.

353 questions
4
votes
4 answers

How would I go about backing up the Windows Application Log at a regular interval?

I'm working with an application that logs to Windows Application Log regularly (viewable through the Event Viewer administrative tool), and I'm looking for a way to back it up on a daily basis. This is important because we sometimes discover a…
Matt Refghi
  • 791
  • 2
  • 12
  • 27
4
votes
0 answers

How to create a custom event view in powershell?

I've been looking around and can't find any way to create a custom view in the event viewer in Powershell. I found a Microsoft Scripting Guy post about exporting one, but I'd like to create one from scratch. I'm using PowerShell 5.0. Edit: Looks…
Speerian
  • 1,138
  • 1
  • 12
  • 29
4
votes
2 answers

SqlDependency subscription not dropped from dm_qn_subscriptions on shutdown

My SqlDependency works fine, and the Broker Queue and Service get dropped properly when the application exits (I do execute SqlDependency.Stop(...) as recommended before terminating the process), yet I notice that the notification subscription…
3
votes
3 answers

Open event viewer from a certain node

What is the command to open windows event viewer displaying a particular node details? For example if I simply use eventvwr command; it opens the UI with Root Node selected. I want Application node selected when it is opened OR any other node. Can…
Azodious
  • 13,752
  • 1
  • 36
  • 71
3
votes
2 answers

Dynamically set EventID when logging to Event Viewer using Serilog

Currently, I have set up my logger to log to the event viewer like so: Log.Logger = new LoggerConfiguration() .MinimumLevel.Information() .MinimumLevel.Override("Microsoft", LogEventLevel.Warning) …
thatOneGuy
  • 9,977
  • 7
  • 48
  • 90
3
votes
1 answer

Application hosted in IIS stopping after the event id 12 and 9009

I have hosted multiple applications in IIS and all applications are stopping at the same time. When I checked the event viewer, I can see only the logs for event id 12 and 9009 around that time. This happened multiple times a day and all these times…
Kesiya Abraham
  • 753
  • 3
  • 10
  • 24
3
votes
0 answers

evntwin evntcmd and Event Viewer

I'm trying to use 'evntwin' to configure Windows to send an SNMP Trap when a particular Windows Event gets logged. So far so good and I can do this for most events i see in Event Viewer. Apart from the one main one I'm looking for. Event Viewer…
3
votes
2 answers

The description for Event ID 'x' in Source 'y' cannot be found. Reading 'System' event logs from eventvwr C#

I have this small piece of code to read "System" events from eventvwr EventLog eventLog = new EventLog("System"); foreach (EventLogEntry log in eventLog.Entries) { Console.WriteLine("{0}\n", log.Message); …
Tarun Kumar
  • 729
  • 1
  • 8
  • 16
3
votes
1 answer

Exporting Event viewer Log File As A *.evtx File

I'm trying to export information from event viewer. I am attempting to do this with EventLogSession so I can have it in a .evtx format and not just a text file. public static void ExportEventViewerLog(int YearsAgo = 0, int MonthsAgo = 0, int DaysAgo…
traveler3468
  • 1,557
  • 2
  • 15
  • 28
3
votes
1 answer

Windows Task Scheduler - Outlook send/receive Mail

Backgroundinfo: I am currently working on a project which runs on UiPath and includes Outlook. I need the Windows Task Scheduler to schedule a Task once an E-Mail is coming in. The Problem: I understand in order to schedule a Task on an event an…
Daniel Maurer
  • 156
  • 1
  • 15
3
votes
2 answers

.Net Windows Service Crashes with MSVCR120_CLR0400.dll exception

We have a windows service in production server which is Windows Server 2008 r2 standard and installed .net framework version 4.5.2 in it. Service stopped twice in last one week suddenly with below event viewer sourced exception : Event Id :1026 ,…
3
votes
0 answers

The specified channel could not be found EventViewer

I am opening windows event viewer security logs which under Windows Logs but its displaying an error as below.(Other logs are working) Event viewer cannot open the event log or custom view, Verify that Event Log service is running or query is too…
Burak Dincer
  • 65
  • 1
  • 9
3
votes
2 answers

write-eventlog does not write to application log (after register the prefered source)

I try to write to eventlog "application". I used a ScriptingGuy-Tutorial. As described in the blog, I register the source "ScS" with the following command in a "run as administrator"-Powershell: New-EventLog -logname Application -source "ScS" I do…
3
votes
1 answer

How can I determine what is referencing Microsoft.VC90.DebugCRT?

I have a large web application project, including code in C#, C++, and C, with many references (project references, DLL references) and I am making a release build. Testing my program in a virtual machine I get the following error: Could not load…
user145400
  • 1,076
  • 1
  • 12
  • 27
3
votes
3 answers

How to enumerate all the registered sources for an EventLog

If I select to filter the "Application" log in the EventLog viewer, I can see a lot of Sources registered with the "Application" log. How could I programmatically enumerate all these sources via C#? And it seems I cannot register my own evento…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
1 2
3
23 24