datafusion-loki
A Datafusion table provider for querying Loki data.
Features
- Use SQL to query Loki logs
- Insert logs into Loki
- Support pushing down filters and limit to Loki
- Execution plan can be serialized for distributed execution
Usage
pub async
Output
+-------+
| count |
+-------+
| 1 |
+-------+
+--------------------------------+--------------------------------------------------------------+-------------------+
| timestamp | labels | line |
+--------------------------------+--------------------------------------------------------------+-------------------+
| 2025-11-17T09:34:36.418570400Z | {app: my-app, detected_level: unknown, service_name: my-app} | user login failed |
+--------------------------------+--------------------------------------------------------------+-------------------+