Documentation for the Query Audit Logs API (#2232)

* Documentation for the Query Audit Logs API

* Add missing empty request body

* Review feedback
This commit is contained in:
Abdon Pijpelink
2026-05-04 13:33:57 +02:00
committed by GitHub
parent 506e326f43
commit 0fc11c07de
7 changed files with 83 additions and 0 deletions
@@ -0,0 +1 @@
Query the audit log with time range and exact-match filters.
@@ -0,0 +1,12 @@
curl -X POST 'https://YOUR-CLUSTER-URL:6333/audit/logs' \
-H 'api-key: QDRANT_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"limit": 50,
"time_from": "2026-03-26T00:00:00Z",
"time_to": "2026-03-27T00:00:00Z",
"filters": {
"result": "denied",
"collection": "my_collection"
}
}'
@@ -0,0 +1,14 @@
```bash
curl -X POST 'https://YOUR-CLUSTER-URL:6333/audit/logs' \
-H 'api-key: QDRANT_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"limit": 50,
"time_from": "2026-03-26T00:00:00Z",
"time_to": "2026-03-27T00:00:00Z",
"filters": {
"result": "denied",
"collection": "my_collection"
}
}'
```
@@ -0,0 +1 @@
Query the audit log via the REST API.
@@ -0,0 +1,4 @@
curl -X POST 'https://YOUR-CLUSTER-URL:6333/audit/logs' \
-H 'api-key: QDRANT_API_KEY' \
-H 'Content-Type: application/json' \
-d '{}'
@@ -0,0 +1,6 @@
```bash
curl -X POST 'https://YOUR-CLUSTER-URL:6333/audit/logs' \
-H 'api-key: QDRANT_API_KEY' \
-H 'Content-Type: application/json' \
-d '{}'
```