Hi All,
How to get Event ID information as part of the alert message? I did check some inbuilt variables but it doesnt seem to give any output... this is very critical for us to pass in alert as it gets sent to the technical teams...
If you're using a component alert, you can use the variable: ${N=SwisEntity;M=ComponentAlert.WindowsEventMessages} - this will embed the entire event message (ID, etc) into the alert message.
If you want only the event ID, you'll need a custom SWQL or SQL query to pull the relevant record from the APM_WindowsEvent_Detail table in the database. There is an EventCode column contained the event ID.
You'd probably need to filter by ${N=SwisEntity;M=ComponentAlert.ComponentID} and maybe sort by record number.