Skip to main content
LogFleet provides on-demand log streaming for troubleshooting. Instead of always shipping logs to the cloud, you stream them only when needed.

How It Works

Streaming sessions have automatic timeouts to prevent forgotten streams from running indefinitely.

Starting a Stream

Via API

Response:

Connecting to WebSocket

Filtering Logs

Apply filters to reduce noise and focus on relevant logs:

Level Filter

Source Filter

Pattern Filter

Combined Filters

Session Timeouts

All streaming sessions have mandatory timeouts:

Timeout Warning

30 seconds before a session ends, you’ll receive a control message:

Extending a Session

To continue streaming, start a new session before the current one ends:

Stopping a Stream

Manually stop streaming when done:

Viewing Active Sessions

List all active streaming sessions:
Response:

Log Message Format

Each log message contains:

Use Cases

Incident Response

Stream logs from affected agents during an outage to identify root cause.

Debugging

Watch real-time logs while reproducing an issue in production.

Deployment Verification

Monitor logs during deployments to catch errors immediately.

Security Investigation

Stream logs to investigate suspicious activity or security alerts.

Best Practices

Always apply filters to reduce bandwidth and focus on relevant logs. Streaming everything can overwhelm both the network and your analysis.
Use the shortest timeout that meets your needs. 5 minutes is usually sufficient for quick debugging sessions.
Manually stop sessions when you’re done troubleshooting. Don’t rely on timeouts for cleanup.
Keep an eye on active sessions across your organization to avoid excessive bandwidth usage.

Bandwidth Considerations

Streaming full logs consumes significantly more bandwidth than metrics: Use streaming sparingly and with appropriate filters.

Client Libraries

JavaScript/TypeScript

Python

Client libraries are coming soon. See the WebSocket documentation for implementing streaming with raw WebSockets.