Questions tagged [event-viewer]

Event Viewer - tool in Windows systems that allows users to inspect the event logs.

Event Viewer - tool in Windows systems that allows users to inspect the event logs.

353 questions
0
votes
2 answers

EventSource, manifests, EventViewer & WS 2008 R2

I have a Microsoft.Diagnostics.Tracking.EventSource using Channel = EventChannel.Admin: the resulting manifest installs and works fine on the two W7 machines I've tried, but on 2008 R2, when I drill down in EventViewer, I get MMC snap-in errors, and…
Benjol
  • 63,995
  • 54
  • 186
  • 268
0
votes
1 answer

import custom Windows event viewer logs form csv into sql table

I have a powershell command taking event viewer logs from a remote windows server and putting it into a csv file and then displaying it and additionally adding it into the database (sql server) String command = "powershell.exe cd 'Path\\Output'; " …
Josh
  • 345
  • 2
  • 3
  • 10
0
votes
1 answer

Log4Net Event Viewer - How to add User and Computer details?

We are using Log4Net to handle application logging. One of the requirement is to log all events to Event Viewer of the Web Server that's running the application. I am unable to find out how to log the following: User name (User using the…
0
votes
1 answer

Filter at event viewer by data

I want to get event entries by their description (data). I know how to get the event entry with a certain description, however I want to get an entry whith a description which contains a string (not equals to it). That, I don't know how to do.…
Shaked Bu
  • 41
  • 1
  • 8
0
votes
1 answer

Issue selecting specific levels of windows application logs in NXLog

I'm trying to pass only Warning / Error / Critical level Application Logs through NXLog to my ELK stack. When I have this configuration Module im_msvistalog # this kinda works for me, put * to get everything …
pcort
  • 419
  • 1
  • 6
  • 19
0
votes
1 answer

Writing to event logger exception c#

I'm trying to write to the event viewer in Windows. But I keep getting an exception when I execute the WriteEntry() function. It's saying: cannot open log for 'source' you may not have write access. As far as I know I'm an administrator here and i'm…
user3519261
  • 79
  • 1
  • 14
0
votes
2 answers

Event Viewer for Websphere MQ failures, errors on Unix

On Windows Server, the event viewer can provide several errors like 2035 or insufficient size of logs for transactions,... I don't see where i can find exactly the same events logs on unix ( Solaris & Redhat). Nothing on syslog, messages and…
0
votes
0 answers

Creating an entry in Windows Event Viewer

I want to create a new entry under Applications and Services Log in Windows Event Viewer for my application. I used ECManGEN tool to generate the manifest and after doing the necessary steps linked it with my project. It works.. However, a folder is…
Jackzz
  • 1,417
  • 4
  • 24
  • 53
0
votes
3 answers

Error message from Eventviewer for SQL Server

Recently i was using SQL Server 2008 which worked fine. But suddenly an error has appeared and my service gets automatically stopped even after i start it manually. Service Name :- MSSQL$SQLEXPRESS Display Name :- SQL Server (SQLEXPRESS) Below is…
Developer Nation
  • 374
  • 3
  • 4
  • 20
0
votes
1 answer

Is there a way to load custom event viewer sources on a pc/server?

I want to view all the custom event viewer source on a server. Is there a way i could find these out by running a script instead of going through all the event logs. It's safe to assume that all the custom sources will be all under…
Idothisallday
  • 311
  • 1
  • 3
  • 14
0
votes
1 answer

How to create a batch script to look for a particular event ID (Eventid: 26) every 5 minutes and execute certain commands in windows server 2003 r2?

how to create a batch script to look for a particular event ID (Eventid: 26) every 5 minutes and if it finds event id of 26 then execute certain commands( Kill a particular windows service and restart it)in windows server 2003 r2?
0
votes
1 answer

Debugging Windows Services while starting

How can I debug an windows service when it is starting? I have an windows service that is falling to start and I add all the logs that I could but something is happening behind the scenes (between the installed service and Windows) that I cannot see…
Icaro
  • 14,585
  • 6
  • 60
  • 75
0
votes
1 answer

Read logs from eventviewer in C#

I want to read logs from event viewer folders which are in "Applications and Services Logs" but I cannot found those folders in C#. Below is my code: if (EventLog.Exists("MyApp-Folder1-Folder2/General")) { EventLog log = new…
Microsoft Developer
  • 5,229
  • 22
  • 93
  • 142
0
votes
2 answers

System.Security.SecurityException when writing to Event Log C#

My application is in C#.NET and it is deployed on different machines. Users of my application have normal access rights ( no ADMIN rights). On a few system I am getting System.Security.SecurityException. It says "System.Security.SecurityException:…
userUnknown
  • 1
  • 1
  • 6
0
votes
1 answer

Weird "Login failed for user 'sa': in Event viewer

I'm hosting my web application on an azure VM. I've created a new user for MSSQLSERVER which my application can use to access the remote SQL server on that machine (so i do not use the sa user in my application). I have no problems at all accessing…
user4612290
  • 311
  • 4
  • 7
  • 18