Skip to main content
GET
/
api
/
v1
/
stream
/
sessions
List active sessions
curl --request GET \
  --url https://api.logfleet.io/api/v1/stream/sessions \
  --header 'Authorization: Bearer <token>'
{
  "sessions": [
    {
      "session_id": "<string>",
      "agent_id": "<string>",
      "status": "pending",
      "bytes_streamed": 123,
      "log_lines_count": 123,
      "started_at": "2023-11-07T05:31:56Z",
      "stopped_at": "2023-11-07T05:31:56Z",
      "stop_reason": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT token obtained from /auth/login

Response

Active sessions

sessions
object[]