Get log stats
GET /logs/{log_id}/stats
GET
/logs/{log_id}/stats
Returns statistics for a log including event count, bytes stored, and timestamps. Use to monitor storage usage. Required role: any.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” log_id
required
string
Log ID (UUID)
Responses
Section titled “ Responses ”Log statistics
Log statistics response. Provides current storage state.
object
bytes
required
Total bytes stored in NATS. Does not include archived data.
integer format: int64
created_at
required
Unix timestamp when the log was created. Immutable.
integer format: int64
event_count
required
Total number of events in the log (archived + live). Accurate at time of query.
integer format: int64
first_event_at
Unix timestamp of first event. Null if log is empty.
integer | null format: int64
last_event_at
Unix timestamp of last event. Null if log is empty.
integer | null format: int64
log_id
required
Log ID (UUID).
string
log_name
required
Log name. Immutable.
string
nats_message_count
required
Number of events currently in NATS (not yet archived or still live).
integer format: int64
view_count
required
Number of views attached to this log.
integer format: int64
Unauthorized
Log not found
Server error