cURL
curl --request GET \ --url https://api.logfleet.io/api/v1/stream/sessions/{sessionId} \ --header 'Authorization: Bearer <token>'
{ "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>" }
Returns status of a streaming session
JWT token obtained from /auth/login
Streaming session ID
Session status
pending
active
stopped
expired
error