Quick Diagnostics
Run this command on your edge device to get a quick health check:Common Issues
Agent Not Appearing in Dashboard
Symptoms: Edge agent deployed but not visible in LogFleet dashboard. Diagnostic steps:| Cause | Solution |
|---|---|
| Invalid API key | Regenerate key with edge:register permission |
| Network blocked | Ensure outbound HTTPS (443) is allowed |
| DNS resolution | Verify api.logfleet.io resolves correctly |
| Clock skew | Sync NTP - JWT validation requires accurate time |
Logs Not Being Collected
Symptoms: Agent running but no logs appearing in local Loki. Diagnostic steps:| Cause | Solution |
|---|---|
| Wrong log path | Update file source paths in Vector config |
| Permission denied | Run Vector with appropriate user/group |
| Loki not ready | Wait for Loki to initialize (check loki_ready metric) |
| Log format mismatch | Verify transform regex matches your log format |
Metrics Not Reaching Cloud
Symptoms: Local logs work but metrics don’t appear in cloud dashboards. Diagnostic steps:| Cause | Solution |
|---|---|
| Rate limited | Check Rate Limits quotas |
| API key expired | Regenerate API key |
| Payload too large | Reduce batch size in Vector config |
| Network intermittent | Metrics buffer locally and retry |
High Memory Usage
Symptoms: Loki or Vector consuming excessive memory. Diagnostic steps:| Cause | Solution |
|---|---|
| High log volume | Increase memory limits or add sampling |
| Retention too long | Reduce retention_period in Loki config |
| Too many streams | Reduce label cardinality |
| Buffer overflow | Increase disk buffer, reduce memory buffer |
Disk Filling Up
Symptoms: Edge device running out of storage. Diagnostic steps:| Cause | Solution |
|---|---|
| Compactor not running | Verify Loki compactor is enabled |
| Retention too long | Reduce retention_period |
| High ingestion rate | Add sampling or filtering |
| WAL not flushing | Check Loki WAL health |
Log Streaming Not Working
Symptoms: Cannot stream logs on-demand from cloud. Diagnostic steps:| Cause | Solution |
|---|---|
| Streaming disabled | Enable via dashboard or API |
| Firewall blocking WS | Allow WebSocket upgrade on port 443 |
| Agent offline | Check agent heartbeat status |
| Session expired | Streaming auto-disables after timeout |
Debug Mode
Enable verbose logging for deeper diagnostics:Getting Help
If these steps don’t resolve your issue:- Check the logs - Most issues are visible in container logs
- GitHub Issues - Search or file at github.com/logfleet/logfleet
- Community - Join our Discord for real-time help
- LogFleet version (
docker images | grep logfleet) - Edge device OS and architecture
- Relevant container logs
- Output from diagnostic commands above