-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve logging pattern schema validation (#200317)
## Summary This makes pattern schema validation stricter by avoiding unrestricted matching, enforces realistic timezone constraints, and sets an upper bound to the date format string. | Characteristic | Before | After | ----|----|----| | Optional Groups | Capturing groups for optional sections. | Non-capturing groups for optional sections.| |Timezone Validation | Allows any characters except }. | Restricts to A-Za-z/_+-.| |Clarity | More complex and verbose. | Cleaner, more restrictive, and simpler.| |Performance | Captures unnecessary groups. | Limits captures to needed named groups.| --------- Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
d910e5e
commit c7bcc5c
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters