Skip to content

10.2.x: Add log field fallbacks (#13018) - #13109

Merged
cmcfarlen merged 1 commit into
apache:10.2.xfrom
bneradt:log-field-fallbacks-10-2
Apr 21, 2026
Merged

cmcfarlen merged 1 commit into
apache:10.2.xfrom
bneradt:log-field-fallbacks-10-2

Conversation

@bneradt

@bneradt bneradt commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Allow custom log formats to fall back between header fields with ?? so configs can log a secondary header when the primary one is absent. This keeps the feature in the existing %<...> syntax and preserves the current distinction between missing and empty values.

This also:

  • Allows overriding the default static fallback from - to some user-specified quoted string literal.
  • Adds support for a final non-header log field (e.g., chi, cqup) as the fallback term, letting users write expressions like %<{x-remote-ip}cqh??chi>.

(cherry picked from commit c478245)

Allow custom log formats to fall back between header fields with
`??` so configs can log a secondary header when the primary one is
absent. This keeps the feature in the existing `%<...>` syntax and
preserves the current distinction between missing and empty values.

This also:

- Allows overriding the default static fallback from `-` to
some user-specified quoted string literal.
- Adds support for a final non-header log field (e.g., chi, cqup) as
the fallback term, letting users write expressions like
%<{x-remote-ip}cqh??chi>.

(cherry picked from commit c478245)
@bneradt bneradt added this to the 10.2.0 milestone Apr 21, 2026
@bneradt
bneradt requested a review from cmcfarlen April 21, 2026 01:21
@bneradt bneradt self-assigned this Apr 21, 2026
@cmcfarlen cmcfarlen removed this from ATS v10.2.x Apr 21, 2026
@cmcfarlen
cmcfarlen merged commit e2b283b into apache:10.2.x Apr 21, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants