Send a test event to a logging destination
/observability-destination/{id}/test
Really delivers one synthetic admin event through the live forwarder and reports the outcome, updating `last_test_at`/`last_test_status`. Works on paused destinations. Optional `config`/`secrets` in the body are merged over the stored ones for this call only — nothing is saved — so edits can be verified before being written. Requires `logging:manage`.
Path Parameters
Logging destination id (ldst_…).
Request Body
Non-secret provider settings.
Which slices of the audit trail to forward: tool_call = MCP/tool executions, auth = membership, role, invite and credential events, admin = everything else.
tool_callauthadmin
Datadog site.
us1us3us5euap1
Write-only credentials, stored encrypted and never returned. Sending secrets REPLACES the whole stored bag, so include every key the provider needs, not just the one you are changing.
Datadog API key — required for datadog.
Sentinel shared key.
Splunk HEC token.
Response Body
Failure detail; null when ok is true.
HTTP status returned by the provider, when there was one.
curl -X POST 'https://api.elaichi.ai/observability-destination/<id>/test' \
-H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"config":{},"secrets":{}}'const body = {
"config": {},
"secrets": {}
};
const response = await fetch('https://api.elaichi.ai/observability-destination/<id>/test', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import os
import requests
url = "https://api.elaichi.ai/observability-destination/<id>/test"
headers = {
"Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
"Content-Type": "application/json",
}
payload = {
"config": {},
"secrets": {}
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())