• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with Loggly

Loggly logo

What does Opsgenie offer to Loggly users?

Opsgenie provides a web API for Loggly to create alerts directly in Opsgenie servers. Forward Loggly alerts to Opsgenie to notify users via iPhone and Android push notifications, email, SMS, and phone calls, track the alert lifecycle, escalate alerts, etc.

Functionality of the integration

When an alert is created in Loggly, an alert is also created in Opsgenie automatically through the integration.

Add Loggly integration in Opsgenie

  1. Go to Opsgenie Loggly Integration page.

Under the Free and Essentials plans, the tabs under the Team dashboard are limited to Main, Integrations, Members, and Activity Stream.

2. Specify who is notified of Loggly alerts using the Teams field. Auto-complete suggestions are provided as you type.

An alternative for Step 1) and Step 2) is to add the integration from the Team Dashboard of the team which will own the integration. To add an integration directly to a team, navigate to the Team Dashboard and open Integrations tab. Click Add Integration and select the integration that you would like to add.

3. Click Save integration.

Loggly integration

4. An "API Key" is generated for the integration, copy the integration URL provided on integration page.

Loggly API key

Configuration on Loggly

  1. From your Loggly account navigate to "Alerts" page and "Add New" alert.

  2. Choose a desired "Saved Search" method defined in the "Search" section.

  3. On the "Add Alert" page, check "Send to an endpoint" box and click Add New.

Loggly add alert

4. Choose HTTP for "Endpoint" and POST for "Method". Paste the API URL copied previously into the "URL" field.

Loggly add alerting endpoint

5. Submit Endpoint.

6. Make sure "Enable this alert" is checked and Submit Alert.

7. Congratulations! Loggly is now integrated with Opsgenie.

Loggly Opsgenie alert

Sample payload sent from Loggly to Opsgenie

JSON

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 { "owner_email":"ops@opsgenie.com", "start_time":"Jul 14 17:32:51", "source_group":"N/A", "query":"airplaneQuery ", "owner_username":"opsgenius", "end_time":"Jul 14 17:37:51", "search_link":"https://opsgenietest.loggly.com/search/?terms=airplane&source_group=&savedsearchid=38364&from=2014-07-14T17%3A32%3A51Z&until=2014-07-14T17%3A37%3A51Z", "owner_subdomain":"opsgenietest", "alert_name":"airplane", "recent_hits":[ " \"airplane\": \"jumbo\",", " \"airplane\": \"tiny\"," ], "edit_alert_link":"https://opsgenietest.loggly.com/alerts/edit/3558", "num_hits":2 }

Sample alert

Loggly sample alert
Last modified on Jan 20, 2021
Cached at 8:53 PM on Apr 10, 2021 |

Additional Help

Ask the Community