SigSentrySigSentry

Datadog

Connect Datadog Logs to SigSentry using API and Application keys

The Datadog adapter uses the Logs Search API v2 to query during analyses. You'll need a paired API key and Application key from your Datadog account.

Prerequisites

NeedNotes
Datadog accountAny plan that includes Logs
API keyGenerated under Account Settings → API keys
Application keyGenerated under Account Settings → Application keys
SiteDefault datadoghq.com; change for EU or other regions

Setup walkthrough

Generate an API key

In Datadog: Account Settings → API keys → New key. Name it something like sigsentry-readonly. Copy the key — it won't be shown again.

Generate an Application key

In Datadog: Account Settings → Application keys → New key. The Application key is what authorizes API requests against the user's permission scope; pair it with the API key you just generated.

The user creating the Application key only needs Logs Read in Datadog. Don't grant admin or write permissions.

Add the log source in SigSentry

Project → Log Sources → Add log source. Pick Datadog and name it descriptively, e.g. datadog-prod.

Enter credentials

FieldValue
API keyThe DD-API-KEY value
Application keyThe DD-APPLICATION-KEY value
SiteOptional. datadoghq.com (default), datadoghq.eu, us3.datadoghq.com, etc.

Add facets to query

Datadog uses facets (service, source, host, status) for filtering. Paste facet values into the Sources textarea, one per line. These are the services or sources SigSentry will query during analyses:

service:checkout-api
service:billing-worker
source:nginx

Click Load sources to autocomplete services from your Datadog account.

Test and save

Click Test connection to query a small recent window. You should see a Connected indicator plus sample log lines. Click Save.

What you'll see in results

Each Datadog log line shown in an analysis includes:

  • Timestamp
  • Log level (mapped from Datadog status)
  • Service name (from the service facet)
  • Message
  • Custom attributes (@user.id, @request.id, etc.) carried through as metadata

Quirks

QuirkNotes
EU regionSet Site to datadoghq.eu; the API endpoint differs
Index scopingOptional Index field restricts queries to a specific index instead of all-logs
Status mappingIf your services log levels differently, override via project AI context

Datadog Application keys are tied to the user who created them. If that user leaves or has their permissions changed, the key stops working. Use a service account or shared admin user for production keys.

Troubleshooting

ErrorFix
403 ForbiddenAPI or Application key invalid; regenerate both
400 Bad Request: invalid queryA facet value contains a Datadog reserved character; quote it or remove
Sample logs empty in testLast 5 minutes had no logs matching your facets; widen scope
Slow queriesReduce the number of facets or scope to a single index