When you have an email set up in your alert (or Rule in lem), you can add custom parameters to your email template.
Then you have to go back to the rule in question, choose the email template with the new parameters, and the new parameters will appear in the actions section of your rule.
After this, you have to find the event field that you would like information from (found on the list to the left of the page), and drag and drop the field that has the information you want to see, (in this case it's the description field you want to drag and drop to the description parameter (or variable as I like to call it)), into one of the parameters you have created. Save changes, (don't forget activate rules button).
The steps that describe this can be found in article:
In the section:
RULE FIRES BUT EMAIL IS BLANK
You receive an email notification for the alert, but the fields in the custom email template are blank.
Steps to resolve:
- Click the Build tab, and then select Rules.
- Locate your rule, click the gear icon on the left and select Edit. You will notice that the fields in the Actions box are blank.
- Copy the event assigned to this rule. This is the string before the dot in the Correlation box.
- Click Events on the left pane and type the event in the search field.
- Drag the fields required in your rule from the Fields pane to populate the blank fields in the Actions box.
- Click Save to close the Rule Creation window.
- Click Activate Rules on the Rules window.
-> create your rule.
-> create your email template
-> add parameters or placeholders where the field information will be saved to into your email template
-> add parameters into the description of your email template
-> go back to the rule, select the email template
-> the parameters with empty text boxes will appear in actions section
-> chose the event you want, then from the list underneath it, the field you want that holds the information you want to see.
-> drag and drop the field you want into the empty textbox of the parameter you have assigned for that field.
-> save changes
-> presto, done!
This is how the event looks in event viewer. I want to include the description lines show below in my email alert.
In Solarwinds LEM, I see that this is how it received it. The description is under the WarningMessage field. It appears to have put it all in a single line, but that's ok.
I set up an email template like so...
And set up a rule like this. But I cannot find the WarningMessage field to drag into the Rules template. How can I find this field, or enable this field to be included in the email message?
1 of 1 people found this helpful
You're trying to build a rule off "AnyAlert" which is a problem for a number of reasons, not least of which is that not every alert has that field.
Replace all your "AnyAlerts" with "ServiceWarning" events, and you'll be able to find the field you want.
Thank you Curtis, that worked!