Create or update the instance's audit stream
const url = 'http://localhost:8080/api/v1/admin/audit-stream';const options = { method: 'PUT', headers: { cookie: 'cetra_session=<cetra_session>', 'Content-Type': 'application/json' }, body: '{"enabled":true,"header_name":"example","header_value":"example","url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8080/api/v1/admin/audit-stream \ --header 'Content-Type: application/json' \ --cookie cetra_session=<cetra_session> \ --data '{ "enabled": true, "header_name": "example", "header_value": "example", "url": "example" }'Instance admins only, with a session, and a licence that lists audit_log, or a cloud cell. Same rules as the organization’s stream. The stream carries the instance log only.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”PUT body of the stream. The URL must be https and carry no user information; the optional
header is one name and one value, sealed and never returned. Without header_value, a
stored header keeps its value when the name is unchanged.
object
Whether records are sent.
The optional header’s name, for example Authorization.
The header’s value, at most 1,024 bytes. Never returned.
The endpoint, an https URL of at most 2,048 bytes. Never returned.
Example generated
{ "enabled": true, "header_name": "example", "header_value": "example", "url": "example"}Responses
Section titled “Responses”The updated destination.
The SIEM stream destination of an org or of the instance (track EA M4, D-EA-11). The URL,
the signing secret and the header value are never returned. An absent optional field is
omitted, never null (spec 09).
object
Whether records are sent.
The optional header’s name. Its value is never returned. Omitted when there is none.
How the stream is doing. Records are sent oldest first, at least once.
object
When the current run of failures began. Omitted when the last attempt worked.
Records not yet accepted by the endpoint.
The class of the last failure, when the last attempt failed. Never a URL or a value.
The last delivery the endpoint accepted. Omitted until the first one.
Whether retention deleted records before they were sent.
The endpoint’s host.
Example generated
{ "enabled": true, "header_name": "example", "status": { "failing_since": "2026-04-15T12:00:00Z", "lag": 1, "last_error": "example", "last_success_at": "2026-04-15T12:00:00Z", "lost_records": true }, "url_host": "example"}The created destination and its signing secret.
201 of the create: the destination, and its signing secret, which is shown only here.
object
The signing secret: verify X-Cetra-Signature with it. Shown once.
The SIEM stream destination of an org or of the instance (track EA M4, D-EA-11). The URL,
the signing secret and the header value are never returned. An absent optional field is
omitted, never null (spec 09).
object
Whether records are sent.
The optional header’s name. Its value is never returned. Omitted when there is none.
How the stream is doing. Records are sent oldest first, at least once.
object
When the current run of failures began. Omitted when the last attempt worked.
Records not yet accepted by the endpoint.
The class of the last failure, when the last attempt failed. Never a URL or a value.
The last delivery the endpoint accepted. Omitted until the first one.
Whether retention deleted records before they were sent.
The endpoint’s host.
Example generated
{ "secret": "example", "stream": { "enabled": true, "header_name": "example", "status": { "failing_since": "2026-04-15T12:00:00Z", "lag": 1, "last_error": "example", "last_success_at": "2026-04-15T12:00:00Z", "lost_records": true }, "url_host": "example" }}The request is malformed or a filter is invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}No credentials, or the credentials are invalid.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The credentials do not allow this operation, or the organization’s plan does not include it (code plan_required).
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}The request conflicts with the current state.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}Too many requests.
RFC 7807 problem document.
Spec 09 § Conventions.
object
Machine-readable error code.
Extra explanation. Omitted when absent.
Field errors. Omitted when empty, because RFC 7807 clients expect the member to be absent.
One field that failed validation.
Spec 09 § Conventions.
object
Request field, query parameter, or expression the error refers to.
What is wrong with the field.
Location inside the field value, for filter and SQL errors.
object
1-based column number, in characters.
1-based line number, in characters.
HTTP status code.
Short human-readable summary, the reason phrase of status.
Problem type URI. Always about:blank in this version.
Example
{ "code": "bad_request"}