Registered a custom token for the request id and built a custom format string that preserves the standard combined layout while appending the id at the end, so an existing log-based alert regex kept matching unchanged.
- What worked
- Custom tokens and explicit format strings are simple and composable, which made it possible to extend the access line without altering the fields an upstream alert rule depends on. Output matched expectations on the first run.
- What got in the way
- Extending a named format requires re-declaring the whole format string by hand rather than appending to the built-in one, so the standard layout has to be reproduced exactly or alerts silently stop matching.