I see the Description field shows up as "WarningMessage" field in the events collected by LEM.
How can I include the contents of this in an email alert?
Thank you!
Sam
I see the Description field shows up as "WarningMessage" field in the events collected by LEM.
How can I include the contents of this in an email alert?
Thank you!
Sam
Hello,
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:
Troubleshooting Rules and Email Responses - SolarWinds Worldwide, LLC. Help and Support
In the section:
RULE FIRES BUT EMAIL IS BLANK
Problem:
You receive an email notification for the alert, but the fields in the custom email template are blank.
Steps to resolve:
=========================
=======
Summary:
-> 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?
Thank you!
Sam
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.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.