Event collection from Logicmonitor

The MID WebService Event Collector enables you to collect JSON formatted event messages from the Logicmonitor.

Before you begin

Ensure that the Event Management Connectors (sn_em_connector) plugin is installed on the ServiceNow AI Platform instance.

Ensure that you:

Role required: evt_mgmt_admin

About this task

JSON formatted event messages are sent from Logicmonitor. The MID Server transforms the collected event messages by parsing them using the TransformEvents_MidLogicmonitor script include, located here: Event Management > Integrations > PushConnectors. In the Push Connectors page, click Logicmonitor Mid Push Connector.

The default format of the URL to push event messages from Logicmonitor to the MID Server is http://<MID_Server_IP>:<MID_Web_Server_Port>/api/mid/em/inbound_event?Transform=TransformEvents_MidLogicmonitor.

Procedure

  1. In the Logicmonitor console, create a custom HTTP Delivery integration.
    1. Navigate to Settings > Integrations and click Add > Custom HTTP Delivery Integration.
    2. In the Manage Custom HTTP Delivery Integration form, fill in the Name and Description field and select the Use the same URL and data to notify on various alert activity check box.
    3. Specify when to send a notification on alert activities by selecting the Acknowledged, Cleared, and Escalated/De-escalated check boxes as needed.
    4. In the HTTP method menu, select HTTP POST.
    5. Fill in the Username and Password field, and enter a URL with the format as, http://<MID_Server_IP>:<MID_Web_Server_Port>/api/mid/em/inbound_event?Transform=TransformEvents_MidLogicmonitor.
    6. Under the Alert Data section, select Raw and select the format as JSON.
    7. Add the custom payload provided in the description of the connector.
    8. Click Test Alert Delivery to verify the connection or Save.
  2. When you're finished creating the integration, create an escalation chain for the alert settings.
    1. Navigate to Settings > Alert Settings > Escalation Chains and click Add.
    2. In the Manage Testing chain form, fill in the Name and Description field and select the rate at which the alerts should be notified.
    3. Under the Stages section, select the Add icon logicmonitor add icon to add a stage and click Save.
    4. When you create the new stage, select the Add icon logicmonitor add icon again to search for the user and add the integration as the Contact Method and click Save.
  3. After creating the escalation chain, configure alert rules for the chain you created.
    1. Navigate to Settings > Alert Settings > Alert Rules, and click Add.
    2. On the Add Alert window, configure the conditions that initiates the alerts when conditions are violated.
    3. Under the Escalation chain menu, select the escalation chain you created.
    4. Click Save.
    Note: To map the CI to the cmdb_ci_vm_object record instead of the cmdb_ci_server, enable the event rule created for Logicmonitor. The Logicmonitor's collector name, which comes in as a hostname in the payload, should be the same as the object_id of the virtual machine discovered in the cmdb_ci_vm_object record.