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
0 answers

Creating Event Trigger in Task Scheduler

I am new to programming and I have found a code to register a task under root folder in task scheduler. I have the below code in which there is a method "eTrigger.SetBasic("Security", "Microsoft Windows security auditing.", 4625)" what it does is it…
0
votes
1 answer

Event log mining with C#

I'm looking for a way to data mine the event logs of a remote computer in C#. The problem I have is that I'm working with Amazon web services and in production we use the auto-scaler to bring up/shut up live virtual machine instances as necessary.…
theburningmonk
  • 15,701
  • 14
  • 61
  • 104
0
votes
2 answers

Collect event logs remotelly

In your opinion, which is the best approach to collect the event logs remotely from several Windows machines in a network? I need to collect the log events remotely and I have several approach (WMI, EventLog class, etc.) but I don't know what is the…
J19
  • 667
  • 2
  • 10
  • 27
0
votes
1 answer

Windows Services (error 1053) event log trigger

I am new to programming and I have this project due on coming Tuesday. What I am trying to do is if a user enters a wrong password on the logon screen the cam takes the picture. I tried to implement my code in services but it gives me error 1053. I…
0
votes
0 answers

WCF Service with Net.TCP Binding unable to write to event log

I have a service hosted in IIS 7 over net.tcp which throws an error when writing to the Application event log because of invalid permissions: Message: Requested registry access is not allowed. Which account do I need to give permission to and where…
field_b
  • 688
  • 5
  • 21
0
votes
1 answer

Create EventLogRecord for unit test

I implemented an API to process EventLogRecord object. using System.Diagnostics.Eventing.Reader; ... MyLog ProcessEvent(EventLogRecord eventRecord) Now, I want create unit test for this and EventLogRecord doesn't have a public constructor. How do…
Icerman
  • 1,099
  • 4
  • 14
  • 30
0
votes
1 answer

powershell returning username from the security log

I have a script which returns me user name, date , logon type and message from the security log with event ids 4624 and 4634 with logon type 2. the problem is that it returns me only a part of the username. E.g. if the username is aaaa.bbbb it…
0
votes
1 answer

How to Automatically Monitor Windows Event Log from SQL Server winth Windows 2008 R2 installed

I need to figure out an automated way of monitoring the application event log of SQL Server boxes. The requirement is such that the system should generate a summarized report of SQL Server errors and warnings from the target machines' event log and…
user3231051
0
votes
2 answers

Standard for Windows Event Logging: Log nothing vs. Info vs. Warning vs. Error?

When should I log a message to the event log? Is there an accepted best practice for whether a particular event... Needs to be logged to the event log at all Is an error or a warning Is important enough info to logged as an info event in the event…
noctonura
  • 12,763
  • 10
  • 52
  • 85
0
votes
1 answer

Event Logging API not writing to system log

I am using the old Event Logging API to write events to the event logs using C++. I can write to the Application log, but I am not being able to write to the System log (I wrote code based on a few tutorials I found online). Here is my MessageDef.mc…
Cygnus
  • 3,222
  • 9
  • 35
  • 65
0
votes
1 answer

Is there any memory consumption issue when we use static method EventLog.WriteEntry() ?

Is there any memory leak/consumption problem when I use EventLog.WriteEntry() static method as compared to creating object of EventLog class and then call WriteEntry() method?
0
votes
1 answer

How can I delete all the windows logs under given source name only?

I need to delete all the event logs under one source name in Windows logs?
0
votes
1 answer

Log4Net: how to avoid Dummy entry created in Eventlog

I have created a sample program and every time I run this program, it is creating a dummy entry in the event log as below. How to avoid without creating a logger? 2014-02-24 18:04:53,557 [8] ERROR Log4NetSample.Program [(null)] - Error message My…
0
votes
0 answers

Has Microsoft.Diagnostics.Tracing.EventSource dropped support for Channels?

I've just upgraded my service to use the latest NuGet ETW package, previously using the beta version. However, it seems channel support has been dropped from the event source. Does anyone have an idea what has happened here?
jaffa
  • 26,770
  • 50
  • 178
  • 289
0
votes
1 answer

Multiple days', custom-filtered, multiple logs' events in one view

How do I get the events between 5:00 PM and 10 PM from Monday to Friday on one server. This gives events for a time-span for a specific day. Get-EventLog -LogName system | Where-Object {$_.TimeWritten -ge "2/5/14 00:00" -and $_.TimeWritten -le…
Ayan Mullick
  • 67
  • 2
  • 11
  • 38