Skip to content
POST /observability-destination/{id}/test

Send a synthetic log to verify the destination accepts intake. An optional config or secrets in the body is used in place of the stored value (not merged into it), so unsaved changes can be tested.

Path Parameters

idstring · uuid
required

Request Body

configobject

A complete config for the destination type. If it sends logs to a different host than the stored config, send secrets too, or the test is rejected with a 400. Stored secrets are never sent to a new host.

One of
Datadog · 3 properties
log_typesstring[]

The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.

Possible values:
apidurable_objectqueuealarm
sitestring
Possible values:
us1us3us5euap1
tagsstring[]
Example: ["env:prod"]
Splunk Hec · 5 properties
hec_urlstring

A public https URL.

Example: https://splunk.example.com:8088
indexstring
log_typesstring[]

The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.

Possible values:
apidurable_objectqueuealarm
sourcestring
sourcetypestring
Sentinel · 7 properties
client_idstring
cloudstring
Possible values:
publicusgovchina
dce_endpointstring

The data collection endpoint, a public https URL.

dcr_immutable_idstring
log_typesstring[]

The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.

Possible values:
apidurable_objectqueuealarm
stream_namestring
Example: Custom-TrutoLogs_CL
tenant_idstring
Otlp · 3 properties
endpointstring

A public https URL.

Example: https://otlp.example.com/v1/logs
log_typesstring[]

The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.

Possible values:
apidurable_objectqueuealarm
resource_attributesRecord<string, any>
Elasticsearch · 4 properties
indexstring

An index or data stream name.

log_typesstring[]

The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.

Possible values:
apidurable_objectqueuealarm
pipelinestring
urlstring

A public https base URL.

Example: https://es.example.com
S3 · 5 properties
bucketstring
Example: truto-logs
endpointstring

The base URL of S3-compatible storage such as Google Cloud Storage (https://storage.googleapis.com), R2 or MinIO.

log_typesstring[]

The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.

Possible values:
apidurable_objectqueuealarm
prefixstring

A key prefix for the log objects.

regionstring

An AWS region such as us-east-1. Defaults to auto when endpoint is set.

secretsRecord<string, any>

Response Body

errorstring
okboolean
statusnumber
curl -X POST 'https://api.truto.one/observability-destination/{id}/test' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json' \
  -d '{
  "secrets": {}
}'
const body = {
  "secrets": {}
};

const response = await fetch('https://api.truto.one/observability-destination/{id}/test', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify(body),
});

const data = await response.json();
console.log(data);
import requests

url = "https://api.truto.one/observability-destination/{id}/test"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}
payload = {
    "secrets": {}
}

response = requests.post(url, headers=headers, params=params, json=payload)
print(response.json())