- PagerDuty /
- Integrations /
- Loggly Integration Guide
Loggly Integration Guide
Loggly is the world’s most popular cloud-based log management service. It aggregates logs across your entire infrastructure and provides a single interface to search, isolate the root cause of problems, and monitor trends. An alert fired in Loggly can be sent to PagerDuty, which will then alert the appropriate technician via SMS, phone, email, or iOS push.
In PagerDuty
- From the Configuration menu, select Services.
- On your Services page:If you are creating a new service for your integration, click +Add New Service.If you are adding your integration to an existing service, click the name of the service you want to add the integration to. Then click the Integrations tab and click the +New Integration button.
- Select your app from the Integration Type menu and enter an Integration Name.If you are creating a new service for your integration, in General Settings, enter a Name for your new service. Then, in Incident Settings, specify the Escalation Policy, Notification Urgency, and Incident Behavior for your new service.
- Click the Add Service or Add Integration button to save your new integration. You will be redirected to the Integrations page for your service.
- Copy the Integration Key for your new integration:
In Loggly
-
Click the Alerts button at the top of the Loggly page.
-
Click Add New to create a new alert.
-
Enter the alert name, the criteria for the alert such as a Loggly saved search, and the threshold that determines when you want the alert to fire.
-
In the Then section, click the checkbox for Send To An Endpoint.
-
Click Add New to create a new alert endpoint
-
Select PagerDuty in the dropdown box.
-
Enter in the name of the endpoint and a description.
-
Enter in the Integration Key you copied from PagerDuty in the PagerDuty Step #3.
-
Press Save to create the endpoint, then Save again to save the alert.
-
If you want to create additional alerts using the same PagerDuty endpoint, just select the existing endpoint in the dropdown box on Loggly’s Alert setup page.
Verify that Loggly and PagerDuty are Communicating
You can verify that they are communicating by triggering a test alert.
-
Click on the name of the alert to edit the configuration.
-
Set the threshold to something that is guaranteed to fire, such as setting it to < 1. Save the alert when you’re done.
-
Wait at least 5 minutes for the alert to run and fire.
-
Log in to your PagerDuty account.
-
Click on Services and then select the service that’s used for monitoring Loggly.
-
You should see that an incident has been triggered.
-
Now that you have verified that it’s working, go back and reset your threshold criteria to the original value you want your alert to fire on.
FAQ
Will Loggly incidents automatically resolve?
Yes, you can optionally configure Loggly to resolve PagerDuty incidents when an alert condition clears.How can I setup Loggly to be tied to multiple PagerDuty services?
Once you have two Loggly/Generic API services within PagerDuty, create a new alert within Loggly. When configuring the alert endpoint, use the Service API Key from the second PagerDuty service.If you are having trouble completing the installation, please contact our support.
Ready to get started?
Try any product on the Operations Cloud for free.
No credit card required.