Help Docs

PagerDuty Logs

PagerDuty is a SaaS incident management platform through which you can manage your alerts under one console. You can forward your PagerDuty incident logs and surrounding information to Site24x7 AppLogs. This would enable you to create, monitor, and analyze your dashboards under one console.

To integrate Site24x7 AppLogs with PagerDuty, follow the steps below.

Create a Log Type in Site24x7 AppLogs

  1. Log in to your Site24x7 account > Admin > AppLogs > Add Log Type.
  2. Enter a Display Name.
  3. Choose PagerDuty from the Log Type drop-down.

  4. Enter the Retention Period and Maximum Upload Limit.
  5. By default, this is the log pattern identified for PagerDuty logs by Site24x7 AppLogs.
    • Log Pattern:
      json $event.occurred_at as EventTime:date:yyyy-MM-dd'T'HH:mm:ss.SSS'Z'$ $event.agent.summary as Agent$ $event.event_type as EventType$ $event.resource_type as ResourceType$ $ as ClientName$ $ as EventId$ $ as ResolveReason$ $ as Title$ $ as EscalationPolicy$ $ as Priority$ $ as IncidentNumber:number$ $ as Urgency$ $ as service$ $ as IncidentId$ $ as Status$ $[0].summary as User$ $[0].summary as Team$
    • Sample Logs:
      {"event":{"id":"5ac64822-4adc-4fda-ade0-410becf0de4f","event_type":"incident.priority_updated","resource_type":"incident","occurred_at":"2020-10-02T18:45:22.169Z","agent":{"html_url":"","id":"PLH1HKV","self":"","summary":"Tenex Engineer","type":"user_reference"},"client":{"name":"PagerDuty"},"data":{"id":"PGR0VU2","type":"incident","self":"","html_url":"","number":2,"status":"triggered","title":"A little bump in the road","service":{"html_url":"","id":"PF9KMXH","self":"","summary":"API Service","type":"service_reference"},"assignees":[{"html_url":"","id":"PTUXL6G","self":"","summary":"User 123","type":"user_reference"}],"escalation_policy":{"html_url":"","id":"PUS0KTE","self":"","summary":"Default","type":"escalation_policy_reference"},"teams":[{"html_url":"","id":"PFCVPS0","self":"","summary":"Engineering","type":"team_reference"}],"priority":{"html_url":"","id":"PSO75BM","self":"","summary":"P1","type":"priority_reference"},"urgency":"high","conference_bridge":{"conference_number":"+1 1234123412,,987654321#","conference_url":""},"resolve_reason":null}}}
  6. Copy the API endpoint URL given below as shown in the screenshot.
  7. Click Save.

Integrate Site24x7 AppLogs with PagerDuty

  1. Log in to your PagerDuty account.
  2. Navigate to your dashboards, select the Integration tab, and click Webhooks.

  3. Click Create New Webhook.
  4. Add the API endpoint URL copied from Site24x7 in the Webhook URL field
  5. Choose the Scope Type and choose either Send all events or Send selected events under Events to send.
  6. Click Add Webhook.

View data

  1. Log in to your Site24x7 account > AppLogs.
  2. Enter PagerDuty Logs as the Log Type.
  3. The following metrics can be viewed for PagerDuty logs:
    • Incident Triggered
    • Incident Resolved
    • Incident Escalated
    • Incident Acknowledged
    • Incident Unacknowledged
    • Incident Reopened
    • Top Alerting Service
    • Top Alerting Incidents
    • Top Escalation Policy
    • Incidents By Urgency
    • Incidents Triggered Summary
    • Incidents By Priority
    • Alerting Service Over the Time
    • Incidents Assigned to Team
    • Incidents Assigned to User
    • Incidents By Escalation Policy

Related log types

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.

We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.

Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!