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

Security Log filter for multiple remote servers using PowerShell

I would like assistance with getting security event logs from multiple remote servers. I've had success with the Application and System logs, but the Security logs are too large to work practically in the same manner. Here is what I'm using for a…
0
votes
0 answers

Eventviewer doesn't show the event log from Application program

.Net4.0, Windows 7(64bit), C# Winform based application. Here is the method writing event log. However, there isn't shown event log on MS Eventviewer. Do you have any idea ? private static void WriteEventLogEntry(string message) { //…
Changju.rhee
  • 463
  • 3
  • 11
  • 26
0
votes
1 answer

Displaying events from server's event log on web page

I want to display certain events from the event log on a web page. For this I have to use a MVC4 application in .NET framework version 4. I've read about SignalR and push messages, but I can't find any clear information on how to implement this.…
user2609980
  • 10,264
  • 15
  • 74
  • 143
0
votes
0 answers

Detecting "new events available" as in Event Viewer using COM+/SENS with C#

SUMMARY When using Windows EventViewer application, it displays an exclamation mark (!) when there are new events to display. I found several articles about implementing SENS in .NET…
meraydin
  • 89
  • 1
  • 1
  • 11
0
votes
1 answer

EventLog WriteEntry() argumentException error with .net 4.5

since I have migrated my code to .net 4.5, I get errors when I try to write eventLog with eventID > 65535 here is my code where iID is > 65535: System.Diagnostics.EventLog appLog = new System.Diagnostics.EventLog(); appLog.Source = "my source"; …
Denfer06
  • 25
  • 5
0
votes
2 answers

Event Log Creator is giving me a generic message on remote machine

I created an event log creator and it works perfect locally. When trying to create an event log remotely it gives me this message: If the event originated on another computer, the display information had to be saved with the event. And it adds…
SlopTonio
  • 1,105
  • 1
  • 16
  • 39
0
votes
3 answers

My script takes too long to run

My script reports on event errors from the application, system and security logs within 24 hours. The script takes an average of 8 mins to run. I believe these particular statements contribute to the problem: $Lap = Get-EventLog -computername…
iamZel
  • 13
  • 2
  • 6
0
votes
2 answers

Getting the Windows uptime

How can I get the uptime day by day in windows 7 for the last month? the system sometime hibernate in the middle of day for few hours. or may be shuted-down. My expected output is like the following: Start Time | UpTime | 2013/12/1 | 28:31:20…
Otto Barrows
  • 505
  • 1
  • 3
  • 15
0
votes
1 answer

EventLog.WriteEntry() message does not appear

Simple Windows console app: using System.Diagnostics; namespace TestConsole { class Program { static void Main(string[] args) { EventLog.WriteEntry("Application", "HELLO!", EventLogEntryType.Error, 22); …
Conrad
  • 2,197
  • 28
  • 53
0
votes
1 answer

Data type of a Keyword attribute in an XML event log

I'm just wondering how will i be able to save a keyword attribute coming from an xml eventlog (.evtx). As an example, a keyword value is 0x800000000000000, what kind of datatype is this in sql if i'm going to save it in a table.
KG Sosa
  • 70
  • 9
0
votes
1 answer

A script that writes errors and should create a event-error

this if it works should check the internet connection if there is a connection it does nothing. if there isn't a connection it should write a error in a txtfile if that happend 5 times it should create a error but it doesn't I will show you the…
helmich
  • 3
  • 1
0
votes
1 answer

How do I read from an arbitrary evxt file using System.Diagnostics.EventLog?

How can I use EventLog to read from an arbitrary evtx file? EventLogQuery is able to open evtx files, but it is not available in .NET 2.0.
dharmatech
  • 8,979
  • 8
  • 42
  • 88
0
votes
1 answer

Total sum of errors from multiple servers using powershell, get-eventlog and Measure-Object

I am trying to get the total number of errors on multiple servers using get-eventlog -logname application -cn $server | ?{$.eventid -eq "10" -or $.eventid -eq "20"} | | Measure-Object The ouput looks something like this Count : 41 Average …
Xommn
  • 3
  • 1
0
votes
1 answer

How to specify the Event Log Source where ASP.NET writes unhandled exceptions?

By default ASP.NET writes any unhandled exception to the default ASP.NET X.Y.Z.0 event log source. Is it possible to specify either configuration that the events and exceptions for a particular application has to be logged in a specific event log…
Knaģis
  • 20,827
  • 7
  • 66
  • 80
0
votes
1 answer

Batch File For Log Backup & Clear

Summary: I'm working on a batch script file to backup Windows Event Logs to a mapped network drive. I used netlogon to establish the channel to the network drive every time the script runs. I want to backup the 'Application, Security, & System' logs…
user2890961
  • 15
  • 1
  • 5