This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

How do I include the Event Log's Description in an email alert?

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:

    1. Click the Build tab, and then select Rules.
    2. 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.
    3. Copy the event assigned to this rule. This is the string before the dot in the Correlation box.
    4. Click Events on the left pane and type the event in the search field.
    5. Drag the fields required in your rule from the Fields pane to populate the blank fields in the Actions box.
    6. Click Save to close the Rule Creation window.
    7. Click Activate Rules on the Rules window.

    =========================

    =======

    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.

    Capture.PNG

    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.

    Capture2.PNG

    I set up an email template like so...

    Capture3.PNG

    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?

    Capture4.PNG

    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.

  • Thank you Curtis, that worked!

    emoticons_happy.png