Automatic discovery of recipients/groups


Recommended Posts

We have begun implementing a tagging standard in our cloud accounts to better control discovered resources and route alerts accordingly.  I would like to be able to route alerts by default based on the value of a tag.  I'm aware that I can already set up specific users and then achieve exactly what I'm requesting, but I would much prefer to have a blanket rule that uses the tag's value as the recipient email address(es) directly.  Some examples below:

See the screenshots below for a visual example of how I'd like to structure this automation.




Link to comment
Share on other sites

  • 7 months later...

Hi Brandon,

I think LogicMonitor does not have feature to send notification based on AWS tag like owner name etc. but it can discover it. You can create small solution using AWS API Gateway, Lambda and SES. I have done it for testing purpose and was working fine.

Flow would be:

Alert Rule -->Escalation Chain -->HTTP JSON integration (POST) --> AWS API getaway --> Lambda function (python or Node.js) --> SES services.

Below is simple python code for this.


import json
import boto3
import re 
from botocore.exceptions import ClientError

def lambda_handler(event, context):

        # Replace with your "From" address.
        # This address must be verified with Amazon SES.
        SENDER = ""
        # Make a regular expression 
        # For validating an Email 
        regex = '^[a-z0-9]+[\._]?[a-z0-9]+[@]\w+[.]\w{2,3}$'
        # Replace with a "To" address. If your account 
        # is still in the sandbox, this address must be verified.
            RECIPIENT = event['recipient']
            RECIPIENT=" >"
        AWS_REGION = "ap-south-1"
         # The subject line for the email.
        SUBJECT = "LogicMonitor " + event['level'] + " " + event['hostname'] 
        # The email body for recipients with non-HTML email clients.
        BODY_TEXT = ("LogicMonitor Genrated Mail\r\n"
                     "This email was sent for threshold breach "
                     "on your system."
        # The HTML body of the email.
        BODY_HTML = """<html>
          <h1>LogicMonitor Alert</h1>
          <table style="width:100%">
          <td>Alert Message</td>
          <td>Start Time</td>


LogicMonitor HTTP integration screenshot 



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.