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
1 answer

Getting event log in c++

I am trying to get system event log in c++ by using following code , Querying for Event Information.But for some condition i am getting ,Invalid event ID.Value of event ID is 1073742727.Which is wrong. My code is look like following…
user2417685
0
votes
1 answer

Looking for windows event viewer system logs message templates , where can I get them?

I need to get hold of at least microsoft windows system events message templates , is there a place I can find those? a template for example : Windows cannot access the file gpt.ini for GPO…
Rotem Slootzky
  • 688
  • 10
  • 21
0
votes
1 answer

how to write on event log with other than "Application" as a log name?

I'm having a problem with making my VB.NET application point to something rather than "Application" in Event Log... I create my custom event log using the function: EventLog.CreateEventSource("My_Source_Name", "My_Log_Name") where the first parm is…
Anas Mousa
  • 23
  • 1
  • 5
0
votes
1 answer

Reading event log from remote machine without passing credentials

I am reading the event log of remote machine using following code. EventLog elog = new EventLog(logName, serverName); I tried to access the log of other machine in my network without having access to those machine. I was really surprised that I can…
Romil Kumar Jain
  • 20,239
  • 9
  • 63
  • 92
0
votes
1 answer

WinAPI LookupAccountSid from an .evt file

I'm trying to get the user account name of a user SID get from an .evt file (Event Log). Until now I have successfully read the file and I have access to the SID of the active user at the time the event was logged. To get a user name from this…
Bastien
  • 994
  • 11
  • 25
0
votes
1 answer

Global.asax Not Writing to Application EventLog Source

I am having an issue in an HttpHandler when an exception gets thrown and handled by Application_Error() within my global application file (global.asax). I am trying to write the exception.Message in my application's EventLog source. And to…
Eric Stallcup
  • 379
  • 2
  • 5
  • 15
0
votes
1 answer

Create Dynamic Path For SSIS Logging with SSIS log provider for Text files

hello i got trouble with Path destination of SSIS log provider for Text files at first i use the path static like D:\\ but right now the path i want to get the path from sql table and put it on variable, so i create expression builder for SSIS txt…
Sabilv
  • 602
  • 1
  • 15
  • 44
0
votes
1 answer

Export eventlog, rolling file solution

We currently have an eventlog which we would like to export to a file at some point. I've currently set it up to something like this: public static void ExtractLog() { var logSession = new EventLogSession(); …
Thomas
  • 27
  • 1
  • 6
0
votes
0 answers

missing network information in event log for windows 7 client (Event ID 4625)

I have an application which will display event log of Security -> AuditFailurein c#, i am reading it with EventLogEntry class's Message property, i am testing it on Window server 2008 R2 When a failure event log generated from machine like Window…
Mohammad Arshad Alam
  • 9,694
  • 6
  • 38
  • 61
0
votes
1 answer

attempted to perform an unauthorized operation in event log of remote machine

When I am executing the following code to the local machine, it works fine: string eventLogName = "Security"; string sourceName = "BTHUSB"; string machineName = "Venus"; EventLog eventLog; eventLog = new EventLog(); eventLog.Log =…
Gomathipriya
  • 905
  • 7
  • 19
  • 38
0
votes
1 answer

.Net / Windows Event Logs: How to keep specific logs when "Overwrite events as needed" is set

We have a VB.Net 2.0 application which logs a great many events. As is usual practice, to stop the application failing when HDD space runs out we have the "Overwrite events as needed" option set. This means that we only ever have around 6 hours of…
Shevek
  • 3,869
  • 5
  • 43
  • 63
0
votes
0 answers

Add IIS hosted WCF Service to Registry Editor to allow writing to Event Log

I have a WCF Service that is not able to write to the Event Log because it does not have permission to create the event source. I have followed the instructions on the MSDN site found here, however they are relatively non-descript. What is the…
NealR
  • 10,189
  • 61
  • 159
  • 299
0
votes
1 answer

get event log list from either event id or keyword

I'm trying to get a list of events where people have attempted to log in to our server and ban immediately block the ip after x unsuccessful attempts. Here is what I have so far: public partial class Form1 : Form { public Form1() { …
ErocM
  • 4,505
  • 24
  • 94
  • 161
0
votes
1 answer

Is it possible to inject events in the event viewer in an old date

I need to know if anyone can inject events in event viewer logs in an old date, how event viewer data are stored, and can anyone change them?
Saw
  • 6,199
  • 11
  • 53
  • 104
0
votes
0 answers

Powershell command to read EventLog

I am reading a event log using a Powershell command like the 1 below: get-winevent -Path "C:\Test.evtx" -oldest | convertto-xml -as Stream > "C:\Test.xml" As you can see, I am storing the result in a XML file for later reading. For few events in…
ViV
  • 1,998
  • 8
  • 27
  • 54