Test observability destination
/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
Request Body
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.
Datadog · 3 properties
The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.
apidurable_objectqueuealarm
us1us3us5euap1
["env:prod"]Splunk Hec · 5 properties
A public https URL.
https://splunk.example.com:8088The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.
apidurable_objectqueuealarm
Sentinel · 7 properties
publicusgovchina
The data collection endpoint, a public https URL.
The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.
apidurable_objectqueuealarm
Custom-TrutoLogs_CLOtlp · 3 properties
A public https URL.
https://otlp.example.com/v1/logsThe kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.
apidurable_objectqueuealarm
Elasticsearch · 4 properties
An index or data stream name.
The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.
apidurable_objectqueuealarm
A public https base URL.
https://es.example.comS3 · 5 properties
truto-logsThe base URL of S3-compatible storage such as Google Cloud Storage (https://storage.googleapis.com), R2 or MinIO.
The kinds of logs to forward. Leave it out to forward all of them; an empty list forwards none.
apidurable_objectqueuealarm
A key prefix for the log objects.
An AWS region such as us-east-1. Defaults to auto when endpoint is set.
Response Body
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())