Server 2008 email on Event variables
One of the new attributes of Server 2008 is the capacity to attach a job to a details occasion in case logs. Among the activities readily available is to send an email via a SMTP web server.
This is functioning great, nonetheless it would certainly be excellent if in the message body, the Event materials can be positioned. I have actually attempted making use of $eventdescription and also %eventdescription%, yet those are simply shots in the dark. Any kind of quantity of googling generates no outcomes.
Does any person recognize if this is feasible?
Update : Sparks' pointer listed below is an action in the appropriate instructions I think, nonetheless that method does not appear to benefit all values. As an example, I can draw the RecordID, Severity and also Channel as revealed, yet I can not make use of the very same method to retreive the EventID, or most notably the summary.
Below is the raw XML from one occasion:
[Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"]
[System]
[Provider Name="DFSR" /]
[EventID Qualifiers="16384"]4412[/EventID]
[Level]4[/Level]
[Task]0[/Task]
[Keywords]0x80000000000000[/Keywords]
[TimeCreated SystemTime="2009-05-14T18:18:09.000Z" /]
[EventRecordID]45692[/EventRecordID]
[Channel]DFS Replication[/Channel]
[Computer]servername.domain.com[/Computer]
[Security /]
[/System]
[EventData]
[Data]9046C3F4-843E-4A53-B941-4B20764072E5[/Data]
[Data]D:\departments\Geomatics\Plan Quality\Data Processing\CG3533017 2009-05-13 KT FIXED[/Data]
[Data]D:\departments[/Data]
[Data]{26D5F604-E603-4F87-8EC3-DE9A945DA8FD}-v927199[/Data]
[Data]Departments[/Data]
[Data]domain.ca\files\departments[/Data]
[Data]B8242CE2-F5EB-47DA-BA5B-1DD2F7EE3AB9[/Data]
[Data]DFAA7A54-66CB-4C31-81A0-0F861382C32C[/Data]
[Data]CG3533017 2009-05-13-{26D5F604-E603-4F87-8EC3-DE9A945DA8FD}-v927199[/Data]
[/EventData]
[/Event]
I have actually attempted making use of a ValueQuery for EventData, yet it returns no information.
I do not have accessibility to a Server 2008 or Vista equipment to attempt this myself and also get the variable for you yet this write-up need to serve.
If you create a standard job and afterwards watch the XML of the job you need to see all the values readily available.
http://blogs.technet.com/otto/archive/2007/11/09/find-the-event-that-triggered-your-task.aspx
Related questions