Logging destinations

Create a logging destination

Creates a logging destination that receives a copy of the audit trail. Requires logging:manage and the logging_destinations feature. For datadog, config.site and secrets.api_key are both required. Verify delivery with POST /observability-destination/{id}/test before relying on it.

post/observability-destination

Request

  • Base URL: https://api.elaichi.ai
  • URL: https://api.elaichi.ai/observability-destination
  • Auth: HTTP bearer

Headers

X-Organization-Idstring

Target organization (org_…). Required for cookie/session auth on org-scoped routes; optional for API tokens, which carry their organization, and rejected when it names a different one.

Request body

type'datadog' | 'splunk_hec' | 'sentinel' required

Immutable after creation.

namestring required
is_activeboolean

Response

Created

idstring

Logging destination id (ldst_…).

type'datadog' | 'splunk_hec' | 'sentinel'

Immutable after creation — to switch providers, create a new destination.

namestring
is_activeboolean

Paused destinations keep their config but forward nothing.

last_test_atstring date-time nullable
last_test_status'ok' | 'failed' | 'null' nullable
created_atstring date-time
updated_atstring date-time

Changes

No recorded changes to this operation across all 1 revision of this API.