Sign in

Search logs

documented

List/search logs using the Logs Events API (v2).

POST https://api.ap1.datadoghq.com/api/v2/logs/events/searchLogsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.ap1.datadoghq.com/api/v2/logs/events/search" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "DD-API-KEY: {{DATADOGHQ_API_KEY}}" \
  -H "DD-APPLICATION-KEY: {{DATADOGHQ_APP_KEY}}" \
  -d '{"filter": {"from": "{{$from}}", "to": "{{$to}}", "query": "{{$query}}", "indexes": ["main"]}, "sort": "{{$sort}}", "page": {"limit": {{$limit}}}}'
Search logs · Datadog · OpenIntegrations