Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to run a program only when a specific ASP.NET event occurs in the event-log. Is there any chance that it will get passed the event details when it is triggered?

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

You can schedule a task to occur when something in the Event Log happens. See here: http://msdn.microsoft.com/en-us/library/aa446887(v=vs.85).aspx

share|improve this answer
    
From that I see that it is the script's responsibility to re-query the Event Log for any event-data it needs. It is NOT passed directly to it as an argument. –  sysadmin1138 May 10 '11 at 23:06
    
I was afraid that passing event variables to program which will be runned when event occur is not possible. So thank you for answering and I'm accepting currently proposed answer. –  GrZeCh May 13 '11 at 8:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.