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

Event Log written as Warning instead of Error

I'm using EntLib 4.1 for logging. When I have an exception handled in the Application_Error of Global.asax.cs, I log the error with a category of 'Error'. I assumed that the event log type would be 'Error', but instead the event log entry is written…
Even Mien
  • 44,393
  • 43
  • 115
  • 119
0
votes
2 answers

Query application event log between a certain time period

I am trying to query application event log for a certain time period in order to check a specific event which confirms the backup status of an application. Since the backup schedule is set between 10:00 PM and 11:00 PM, I am trying to get info about…
Rajiv
  • 675
  • 9
  • 21
  • 35
0
votes
1 answer

EventLogSession not working correctly

I'm using EventLogSession, EventLogQuery and EventLogReader classes to query remote computer, when I use below code, it works fine: var session = new EventLogSession(machineName, null, null, null, …
imgen
  • 2,803
  • 7
  • 44
  • 64
0
votes
1 answer

can I limit log4net to eventview by size?

My webApplication uses log4net that writes to event-viewr. I want to limit its size to 1 GB. is there any way to do this within the webcofig? (as it can be limited to log file)
Elad Benda
  • 35,076
  • 87
  • 265
  • 471
0
votes
1 answer

Unique identifier for an event in Event Log

I have a Windows Event Log file (.evt/.evtx) and I want to select a particular event from the Event Log using power shell. I see cmdlets like $provider = Get-WinEvent -listprovider $EventSource $ProviderEvent = $provider.events | Where-Object…
ViV
  • 1,998
  • 8
  • 27
  • 54
0
votes
2 answers

SQL Server spams in event log on every call of extended proc

I've wrote an extended stored procedure in dll. Every time I call it, SQL Server wrote useless "Information" in Windows Event Log (Windows Logs\Application): Event Type: Information Event Source: MSSQLSERVER Event Category: (2) Event ID: …
user168508
0
votes
1 answer

Unusual event.EventID numbers like -2147481364 in Python using win32evtlog from Pywin32

I wrote a python(3.2) script to ban ips on certain events from the event logs on a Windows 2008 server and I was trying to test if it would ban ips from sql brute forcing attempts properly. Unfortunately so far it's not getting to that part of the…
Jason White
  • 666
  • 4
  • 10
  • 23
0
votes
0 answers

How can I programmatically (C++) save the event log file as a CSV?

I would like to save the event log to a CSV file, both in Windows XP and Windows 7. In Windows XP I can manually do it: I open the "Event viewer" (EVENTVWR or EVENTVWR.MSC on the command line), then for example I right click on the "Application"…
Alessandro Jacopson
  • 18,047
  • 15
  • 98
  • 153
0
votes
1 answer

How can we map the user's logon and logoff events

I have some knowledge about the events 4624(logon) and 4634(logoff). As microsoft's document suggests, we can correlate these events with the logonid. Here my question is, is there any other efficient way to do this? Because my need would be, I…
Kevin M
  • 5,436
  • 4
  • 44
  • 46
0
votes
1 answer

Enhance reading speed from event log?

I have an application reading some data from the event log, this application performance is too bad if the event log was too large, i.e. more than 30,000 entry. I am searching for a faster way to get the info from it, I have used for now two ways,…
Abdallah Nasir
  • 607
  • 6
  • 33
0
votes
1 answer

Is Deleting Event log that danger?

I have an application, which keeps track of some logs since its installation time. Since the system log may be huge, my application's performance is too bad if the log is too large, but if we cleared the log just before installation, it will be much…
Abdallah Nasir
  • 607
  • 6
  • 33
0
votes
2 answers

Get system time changes in windows?

Possible Duplicate: how can i make my product as a trial version for 30 days? Implementing a 30 day time trial I am programming a trial application, which has a 30 day trial period, in order to reserve the 30 day for user, I need to check for…
Abdallah Nasir
  • 607
  • 6
  • 33
0
votes
1 answer

How to read event log without administrative permissions in .NET?

I need to read from the security log in windows, but the user will not have the administrative permissions to do so, and the application will throw an exception, EventLog[] a = EventLog.GetEventLogs(); foreach (var item in a) { if (item.Log ==…
Abdallah Nasir
  • 607
  • 6
  • 33
0
votes
1 answer

How to use VB.NET to query remote server event logs?

I am working on creating a web app that will query event logs on internal servers for events using a specific ID. Since most of the servers are running Windows Server 2003, I cannot use the preferred System.Diagnostics.Eventing.Reader method that I…
mlapida
  • 3
  • 1
  • 4
0
votes
2 answers

Is there an equivalent of System.Diagnostics.EventLog for C++?

I need to change the parameters of the Windows Event Log from a C++ code, and namely what is available via the System.Diagnostics.EventLog class in C#. I need to read and later possibly modify the following…
ahmd0
  • 16,633
  • 33
  • 137
  • 233