Discussion Locked

Trigger of event logging

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there any way to know when an application (program) is writing an event log?

I have an application which will write into event log of the success start up of the application. I wish to schedule a batch job to run when the application is successfully started.

4 replies

by dryflies

There are a couple of ways to do this but using a scheduler is not one of them. you could make a shortcut that launches the program and then delays for a while and checks the event log. or you could write a daemon (service) that periodically checks the event log for changes and then acts appropriatly. Another possibility is writing a service that monitors the system looking for that process which then checks the event log when the process is detected.

by wodoy.peter

I'd found a way to do it using the "eventtriggers" which will be triggered when a certain event with a specific event ID is written to the event log.

For more info, type "eventtriggers /?" in command prompt.

by kigeorge

question concerning the eventtriggers command.. is there a way, when using this command, that you can point to an .exe file that you have created in (for example) vb.net to run, once a specific event has been triggered...

by sovereign_abhi

Dear Sir
Please tell me how can one write a specific log into the event viewer?
I have a log file in the .log format. I want to write it into the event viewer on my system.
You said you ahve an application for the purpose.
Please help me in this regard.

This discussion is closed to new replies.