跳至正文

SendGrid Email Logs Integration

Overview

SendGrid provides transactional email delivery with comprehensive activity tracking and event webhooks. KYRA MDR collects SendGrid email events for monitoring email delivery, bounce patterns, and potential abuse.

Prerequisites

  • A KYRA MDR Collector installed and running
  • SendGrid account with API access
  • API key with Mail Send and Email Activity read permissions
  • Event Webhook URL accessible from SendGrid

Configuration

Configure SendGrid Event Webhook:

  1. Log in to the SendGrid Dashboard
  2. Navigate to Settings > Mail Settings > Event Webhook
  3. Enable the Event Webhook
  4. Configure:
SettingValue
HTTP Post URLhttps://<collector-url>/webhook/sendgrid
ActionsSelect all event types
SecurityEnable Signed Event Webhook
  1. Click Save

Alternatively, use the Email Activity API:

collector-config.yaml
sources:
- type: sendgrid
api_key: <api-key>
poll_interval: 300s

Collected Log Types

Log TypeDescriptionSecurity Use
DeliveredSuccessful email deliveriesEmail delivery monitoring
BouncedFailed email deliveriesInfrastructure health
OpenedEmail open tracking eventsPhishing simulation tracking
ClickedLink click tracking eventsUser behavior monitoring
Spam ReportsSpam complaint eventsReputation monitoring
DroppedEmails dropped before deliveryPolicy enforcement

Troubleshooting

Webhook not receiving: Verify the collector URL is publicly accessible and SendGrid can reach it.

Missing events: Ensure all event types are selected in the webhook configuration.

Authentication: Enable Signed Event Webhook for request verification.

Contact kyra@seekerslab.com for support.