Questions tagged [event-log]

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

1270 questions
0
votes
2 answers

Log4Net won't create custom event log in event viewer

My WPF app uses Log4Net to record messages to the event viewer. This is working great on most machines. However, there are two machines in my office where there are problems. One is a physical Windows 7 machine with 2 GB of ram, the other is a…
Tony Vitabile
  • 8,298
  • 15
  • 67
  • 123
0
votes
1 answer

How can I programmatically determine the description of an Event ID

I wrote a utility that allows me to view EventLog messages, filtering on their types, when they were written, etc. I see that I have had the following entry a gazillion times (give or take a few) in the last several months/since I purchased my…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
2 answers

Windows Event Viewer Error Code After Crash

Error code 10000050, parameter1 e60c0000, parameter2 00000001, parameter3 bf04963f, parameter4 00000001 I have a computer that is repeatedly blue screening and this is the only error in the system logs that seemed abnormal. Any help would be…
Thrawn
  • 1
0
votes
2 answers

How can I get a more descriptive error message in my event log?

I am pretty new to logging. I get this jibberish in my event log. The description for Event ID ( 0 ) in Source ( xyAMP ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages…
Hcabnettek
  • 12,678
  • 38
  • 124
  • 190
0
votes
1 answer

EventLogs using Silverlight

Is there a way to access the event logs of a server (or the local machine for now) using Silverlight and C#? The EventLog class is not available in Silverlight due to the System.Diagnostics namespace not being available for the Silverlight runtime.
varagrawal
  • 2,909
  • 3
  • 26
  • 36
0
votes
2 answers

Improve performance of reading event log

I am queries event log of different domain controllers, I have to keep querying that after some time interval. Below is the code I am using to query it. public static void FindAllLog(string machineName) { //EventLog log = new…
sunder
  • 1,803
  • 4
  • 29
  • 50
0
votes
1 answer

Event 1014: Name resolution for the name xyz.database.windows.net timed out after none of the configured DNS servers responded

I'm connecting to an Azure SQL database using ASP.NET on W2008R2. In the Event Log I'm getting "Name resolution for the name xyz.database.windows.net timed out after none of the configured DNS servers responded." frequently. It does not seem to…
Sebastian Brand
  • 547
  • 4
  • 10
0
votes
1 answer

Detect EventLog permissions before calling EventLog.SourceExists

I want to log to the Application event log from an ASP .NET app. I want to call EventLog.SourceExists to determine if an event source exists firstly and if not create it. As documented on MSDN…
Kevin Higgins
  • 131
  • 1
  • 6
0
votes
2 answers

powershell 2.0 unable to get Internet Explorer logs

When I try to run cmd get-eventlog -list on win2003 std in powershell V2.0. It gives me the following output Max(K) Retain OverflowAction Entries Log ------ ------ -------------- ------- --- 16,384 0 OverwriteAsNeeded …
user564769
  • 43
  • 9
0
votes
1 answer

How can i filter Windows Events retrieve with an XPATH where a certain value is a substring of the value?

Windows Events have an ability to filter by XPATH (which is a fast search). I have sucessfully using the PowerSHell Cmdlet Get-WinEvent filtered where a specific value is a specific value as shown below $qry = "*[(EventData/Data[@Name='TaskName']…
klumsy
  • 4,081
  • 5
  • 32
  • 42
-1
votes
2 answers

Event Logging in ASP.NET

I am using VS2005 C# .NET 2.0 and SQL Server 2005. Are there any websites that provide step by step instructions to implement event logging for my web application? Edit: I will like to save the log event files as a text file in the application…
gymcode
  • 4,431
  • 15
  • 72
  • 128
-1
votes
1 answer

Parsing Eventlogs XML file to CSV in Python

I am working on a simple python script to extract certain data from an xml file. The xml contains windows events and eventid. Below I am showing the code. It is failing when it needs to extract the data, but it is creating the file but is…
PRobles
  • 37
  • 4
-1
votes
1 answer

how to read .evtx files?

I would like to read the contents of the Event Log on Windows using the Perl script. I can read the contents of the 'Application' Log. I can't read old logs - .evtx files. Can you advise me where I have a mistake? $filename =…
Jiri
  • 21
  • 1
-1
votes
1 answer

Windows Command Line Powershell error: Missing closing ')' in expression

I'm having trouble formatting this to run as a single command line. powershell ("$today = [system.datetime](Get-Date); $startTime = $today.AddHours(-4); Get-WinEvent -FilterHashtable @{LogName='Application'; ProviderName='Application…
Michele
  • 3,617
  • 12
  • 47
  • 81
-1
votes
1 answer

Delete old entries of the event-log with PowerShell or CMD? (Not all of them | With period of time condition)

Please take a look at these two threads : how-to-clear-eventlog-with-powershell-or-wevtutil delete-old-entries-of-the-event-log-with-powershell Some days ago some body stole my password of wi-fi and connected to it. After connect he hacked my…
SilverLight
  • 19,668
  • 65
  • 192
  • 300