Tracking response errors with access logs and status code filters

I’am trying to make all erroneous access attempts visible to track

  • wrong encoding (character encoding issues encodedCharacters)
  • all 403/401 (and for now other errors)

So i configured (helm chart)

logs:
  general:
    level: ERROR
  access:
    enabled: true
    filters:
      statuscodes: "400-499,500-599"
    format: "json"

Doing so, neither “bad-requests” of wrongly encoded URLs are logged, nor 401 responses are logged.

What am i doing wrong in this case? Do i need to also configure the routes observability ?

Removing statuscode filters, i can see 200/202’s but still no 401/400 (encoding issues).

For anybody with a similar issue - for every route you want to have access logs for, you have to enable accessLogs on the actual route too (in addition). If that one is disabled, logs.access.enabled=true will not log anything for this route.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.