Loggles
JSON →Loggles is a local-first log sink with an MCP interface that lets coding agents (Claude Code, Cursor) query application logs directly
Install
pip install opentelemetry-exporter-otlp-proto-http Tools · 17
- search_logs Search with filters: time range, level, service, message text, structured properties. Supports pagination.
- get_log_by_id Retrieve a single log event by ID
- get_services List all source/service names that have emitted logs
- get_log_levels List distinct log levels present
- get_properties List distinct structured property keys
- get_property_values List distinct values for a property key within a time window
- get_log_stats Log counts grouped by level and service
- get_logs_by_trace_id Retrieve all logs sharing a trace/correlation ID
- get_related_logs Context window of logs around a specific event
- get_recent_errors Last N error/critical log events, optionally filtered by service
- tail_logs Most recent N log events
- get_log_rate Bucketed log counts over time — observe traffic volume and rhythm
- get_message_templates List distinct message templates, optionally filtered by service
- find_log_patterns Cluster messages by recurring pattern
- get_error_spikes Detect time buckets where error count exceeded a threshold
- audit_log_quality Report instrumentation coverage: missing templates, unstructured messages, broken down by service
- clear_logs Delete all log events from the store
Links
★ 9 GitHub stars