Questions tagged [custom-eventlog]
30 questions
1
vote
1 answer
Service on local computer started then stopped error
I have a windows service. It was working fine until I added code for it to begin logging. Now when I try to start the service I receive the following error:
The GBBService service on local computer started then stopped. Some
services stopped…

user1270384
- 711
- 7
- 24
- 53
0
votes
1 answer
Purging a Windows EvengLog using .NET based on number of days?
Looking for some insight on managing my event log with code.
I've successfully created an event log and can write to it with no concerns.
I can see how this log will fill quickly and I want to limit the log to a certain number of days.
Anyone have…

George Vaisey
- 139
- 1
- 5
- 19
0
votes
1 answer
How to register the automatically registered Windows Service EventLog property to another log than the Application log?
I'm currently creating a Windows Service and just figured out (thanks to this answer) how to configure the service installer in order to create a custom event log source during installation. As I already figured out by myself, these custom event log…

Pete Hilde
- 659
- 1
- 10
- 24
0
votes
1 answer
Writing to the event log without admin
I am admin on my local machine. However the app I am creating (an outlook VSTO addin) will be deployed by a deployment admin to users who won't have admin.
The app installs correctly.
My issue is that I have code which checks if an…

Sniipe
- 1,116
- 3
- 13
- 28
0
votes
0 answers
How can I allow a WCF web service which uses impersonation to write to a Windows Event Log?
I'm writing a small WCF service and I'd like to be able to write to a custom event log. I've created an event log and source and a minimal service and the service can write to the log. Then I added impersonation and started getting 'Access is…

user2871239
- 1,499
- 2
- 11
- 27
0
votes
0 answers
Cannot write to custom event log
I have created a simple Windows service.
The service registers a custom event source and log.
For testing purposes I have named the log "asd" and the source ".asd".
Both the log and source are correctly created, the service is correctly installed…

J. Doe
- 329
- 3
- 12
0
votes
1 answer
C#_EventLog Exception
I’m trying to write a simple event log but i confront with “System.Security.SecurityException: The source was not found...”
and i searched a lot but couldn’t find an efficient solution, I really really appreciate if someone help me with that
I…

S.Katuzian
- 13
- 6
0
votes
1 answer
EventCreate.exe creates a "CustomSource" value, what does it mean?
The command-line EventCreate.exe tool registers a user-defined event source in the Registry for the Windows Event Log Viewer to use, like this:
eventcreate /t INFORMATION /ID 100 /L "Application" /SO [SourceName] /D "Description"
I wrote an app…

Remy Lebeau
- 555,201
- 31
- 458
- 770
0
votes
1 answer
Create a custom EventLog other than on the Application node in the Windows EventLog (in Delphi)
How create (in Delphi) a custom EventLog other than on the "Application" node in the Windows EventLog?
//The code below write on the Application node only
with TEventLogger.Create('JarvisAgent') do
begin
try
try
LogMessage(Msg,…

Marcius Bezerra
- 137
- 1
- 2
- 11
0
votes
1 answer
Writing into Application and Services Log with VBscript
In my PowerShell script, I'm using this cmdlet for writing into Application and Services Logs in a custom log.
write-eventlog -logname "MyRemoteSuite" -source "MRP" -eventid 100 -Message $Msg
It's working well. Now I need to do the same with…

mrplume
- 183
- 1
- 3
- 18
0
votes
1 answer
Can't Write to Windows Application Log (C#)
I'm having a really strange problem with an application I wrote a while back. It has worked without issues, but after leaving it alone for a while, it simply stopped functioning. I'll attach the code here:
try
{
using (Process proc =…

Rich
- 39
- 8
0
votes
2 answers
Custom Event Logging in a Windows Service
In the project installer i am creating a custom event log. But when my service starts my all logs are going to the "Application" instead of my cuustom log. Below is the code which i have added to installer.
// Create Event Source and Event Log …

Mehwish
- 11
- 1
- 5
0
votes
1 answer
Custom Windows Eventlog, register one source in multiple eventlogs
Is it possible, for example to have a source "MyApp" and register it to Application eventlog and another custom eventlog?

Legends
- 21,202
- 16
- 97
- 123
0
votes
2 answers
Powershell XML Parsing and writing to the event viewer
I am trying to parse XML files in a directory where a keyword is defined.
If the keyword is found, it should first be replaced to avoid further matching and then the contents of the xml will be sent as the message portion of an event.
The main issue…

Delaney
- 5
- 4
0
votes
2 answers
Cannot open log for source {0} on Windows 2003 Server
I am having a huge problem with the eventlog on my server. Right let me first of all explain the setup.
I have a domain setup with 2 computers
One computer is running IIS the other is a workstation. The IIS is running Win2k3 the workstation Win…

Adam S-Price
- 1,988
- 2
- 15
- 21