curl --request GET \
--url https://api.sfcompute.com/v2/nodes/{id}/logs \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"timestamp_realtime": 1738972800,
"timestamp_monotonic_secs": 123,
"timestamp_monotonic_nanos": 1,
"seqnum": 1,
"data": "SGVsbG8gV29ybGQK"
}
]
}Retrieve logs for a node.
curl --request GET \
--url https://api.sfcompute.com/v2/nodes/{id}/logs \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"timestamp_realtime": 1738972800,
"timestamp_monotonic_secs": 123,
"timestamp_monotonic_nanos": 1,
"seqnum": 1,
"data": "SGVsbG8gV29ybGQK"
}
]
}Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
A resource path like 'sfc:node:acme:prod:my-node' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
(node_[0-9a-zA-Z_-]{1,21})|(sfc:node:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,3})"node_k3R-nX9vLm7Qp2Yw5Jd8F"
Return logs with seqnum less than or equal to this value.
x >= 0Return logs with seqnum greater than or equal to this value.
x >= 0Due to clock synchronization, some earlier log messages may have a realtime timestamp after this value. Unix timestamp.
1738972800
Due to clock synchronization, some later log messages may have a realtime timestamp before this value. Unix timestamp.
1738972800
seqnum, -seqnum 1 <= x <= 2500