mirror of
https://github.com/qdrant/qdrant.git
synced 2026-07-25 20:21:08 -05:00
* Add REST API for reading audit logs across the cluster Introduces a new `GET /audit/logs` endpoint that retrieves audit log entries from all peers in the cluster. The API supports filtering by time range (time_from/time_to), dynamic key=value field filters, and a built-in limit parameter to prevent reading too many logs at once. - Add `audit_reader` module in storage crate for efficient file-based log retrieval, selecting only files whose date range overlaps the query window - Add `GetAuditLog` internal gRPC RPC for cross-peer log retrieval - Add `GET /audit/logs` REST endpoint restricted to management access - Aggregate and sort results from all peers by timestamp (newest first) Made-with: Cursor * [AI] Update filter_files_by_time_range make it aware of the log rotation granulatity (either hourly or daily) * [AI] For AuditLogParams, try to use DateTime types natively into serde, instead of manual parsing * [AI] Refactor API into separate file, propagate timeout, use spawn-blocking * [AI] introduce cancellation token * [AI] move timestamp to constant * small manual fixes * review fixes part 1 * review: switch to POST instead of GET * [AI] review: sorting update * [AI] use strict typing --------- Co-authored-by: Cursor Agent <agent@cursor.com> Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>