Route gateway audit logs to Loki
Post http-log to /sales instead of /logs. Fluent Bit's http input derives the record tag from the request URI, so the path is what identifies this domain in the collector and becomes the Loki label domain=sales. The collector keeps writing every domain to the on-disk audit trail as well, so this is reversible by restoring the previous path. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -24,7 +24,9 @@ spec:
|
|||||||
BACKEND_AUDIENCE: '["classic-models-api"]'
|
BACKEND_AUDIENCE: '["classic-models-api"]'
|
||||||
BACKEND_SCOPES: '[]'
|
BACKEND_SCOPES: '[]'
|
||||||
API_RATE_LIMIT_MINUTE: "60"
|
API_RATE_LIMIT_MINUTE: "60"
|
||||||
AUDIT_LOG_ENDPOINT: http://audit-log-collector.observability.svc.cluster.local/logs
|
# The URI path is the collector's routing key: Fluent Bit tags the
|
||||||
|
# record `sales` and turns that into the Loki label domain=sales.
|
||||||
|
AUDIT_LOG_ENDPOINT: http://audit-log-collector.observability.svc.cluster.local/sales
|
||||||
REST_HOSTNAME: sales-dev.sttlab.local
|
REST_HOSTNAME: sales-dev.sttlab.local
|
||||||
TOKEN_EXCHANGE_CLIENT_ID: kong-token-exchange-broker
|
TOKEN_EXCHANGE_CLIENT_ID: kong-token-exchange-broker
|
||||||
substituteFrom:
|
substituteFrom:
|
||||||
|
|||||||
Reference in New Issue
Block a user