I have created (actually got it from experts here) an event trigger on a 2003 server to watch for error type events in the Application log, and run a script (which I got from experts here as well) which emails a notification of the event with details of the log entry.
Right away I realized I want a notification of error and warning type events in any of the logs. In order to generate an email with specific info about which type of event was generated in which log, is it necessary to create a trigger for each type of event, for each log, to fire off a script appropriate for the log and event type?
Or is it possible to have the script determine which log had an event added, and generate an e-mail with content about the specific event and which log it was created in?
As it is, with my limited knowledge of scripting, my best thinking at this point is to create 4 triggers (2 triggers to watch for Warnings in App and System log, and 2 for Errors), each to run an individualized script for the entry type and log in which it was generated.
Thanks for the help. Bill