Skip to content

Apply log sink changes (hot reload)

POST
/api/v1/log-sinks/apply
curl --request POST \
--url https://osctrl.net/api/v1/log-sinks/apply \
--header 'Authorization: <Authorization>'

Queues a reload-log-sinks service command for osctrl-tls. The TLS process rebuilds its per-environment exporter map from the log_sinks table and atomically swaps it in, closing the old sinks. In-flight logs to the old sinks may be dropped during the swap; no restart is required.

Reload requested

Media typeapplication/json
object
command
object
action
string
command_id
string
consumed_at
string
consumed_by
string
created_at
string
expires_at
string
recovered_at
string
recovered_by
string
requested_by
string
requested_from
string
status
string
target_service
string
message
string
service
string
Examplegenerated
{
"command": {
"action": "example",
"command_id": "example",
"consumed_at": "example",
"consumed_by": "example",
"created_at": "example",
"expires_at": "example",
"recovered_at": "example",
"recovered_by": "example",
"requested_by": "example",
"requested_from": "example",
"status": "example",
"target_service": "example"
},
"message": "example",
"service": "example"
}

Unauthorized

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Forbidden

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Service commands unavailable

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}