LogFleet uses rate limiting to ensure fair usage and protect the platform from abuse. This guide explains how rate limiting works and how to handle it in your applications.Documentation Index
Fetch the complete documentation index at: https://docs.logfleet.io/llms.txt
Use this file to discover all available pages before exploring further.
Rate Limit Overview
Different endpoint groups have different rate limits:| Endpoint Group | Rate Limit | Window |
|---|---|---|
Authentication (/auth/*) | 10 requests | per minute |
Dashboard (/dashboard/*) | 60 requests | per minute |
Management (/agents, /api-keys) | 100 requests | per minute |
Streaming (/stream/*) | 10 requests | per minute |
Billing (/billing/*) | 30 requests | per minute |
Metric Configs (/metric-configs/*) | 100 requests | per minute |
Edge API (/edge/*) | 1000 requests | per minute |
Rate Limit Headers
Every API response includes rate limit information:| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed in window |
X-RateLimit-Remaining | Requests remaining in current window |
X-RateLimit-Reset | Unix timestamp when the window resets |
Handling Rate Limits
When you exceed the rate limit, you’ll receive a429 Too Many Requests response:
Retry Strategy
Implement exponential backoff with jitter:Best Practices
1. Monitor Rate Limit Headers
Track your remaining quota and slow down before hitting limits:2. Batch Requests
When possible, use batch endpoints instead of individual requests:3. Cache Responses
Cache responses that don’t change frequently:4. Use Webhooks
For real-time updates, use webhooks instead of polling:Edge API Rate Limits
Edge agents have higher rate limits (1000 req/min) to accommodate:- Heartbeats every 30 seconds
- Metrics every 60 seconds
- Config syncs every 60 seconds
| Agents | Heartbeats/min | Metrics/min | Config/min | Total/min |
|---|---|---|---|---|
| 10 | 20 | 10 | 10 | 40 |
| 50 | 100 | 50 | 50 | 200 |
| 100 | 200 | 100 | 100 | 400 |
| 500 | 1000 | 500 | 500 | 2000 ⚠️ |
Rate Limits by Plan
Higher-tier plans have increased rate limits:| Plan | Management | Dashboard | Edge API |
|---|---|---|---|
| Free | 100/min | 60/min | 1000/min |
| Pro | 500/min | 300/min | 5000/min |
| Enterprise | Custom | Custom | Custom |
Troubleshooting
I'm hitting rate limits unexpectedly
I'm hitting rate limits unexpectedly
- Check if you have retry loops without proper backoff
- Verify you’re not making duplicate requests
- Review the
X-RateLimit-Remainingheader to see your usage - Consider caching frequently-accessed data
My edge agents are being rate limited
My edge agents are being rate limited
- Verify heartbeat/metrics intervals aren’t too aggressive
- Check total agent count vs. edge API limits
- Ensure agents aren’t retrying failed requests too quickly
- Contact support if you need higher limits
How do I request higher limits?
How do I request higher limits?
Enterprise customers can request custom rate limits.
Contact support@logfleet.io with:
- Your organization ID
- Current usage patterns
- Required limits and justification