-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML] Fix Kibana date format and similar overrides in text structure e…
…ndpoint (#84967) (#84973) This PR fixes two problems. The first caused the second to be noticed: 1. The timestamp format pattern for Kibana's default date format was wrong - it was designed to match double digit day of month only, when Kibana uses a single digit for 1-9. 2. Trying to use a timestamp format override to work around the first problem didn't work. This exposed a second, more general problem. When a timestamp format override is supplied we try to work out if a built in timestamp format would always include it, and use that in preference. (This allows friendly format names like "iso8601" to replace complex patterns.) However, the way this ability to substitute was being determined was flawed, leading to incorrect substitutions. In the case of the Kibana timestamp format it resulted in the correct format supplied as an override being replaced with the buggy built in timestamp format. To fix this, substitutions are now only performed if the correct number of digits are present as well as the Grok pattern matching.
- Loading branch information
1 parent
dc3d3b5
commit 8190962
Showing
3 changed files
with
43 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 84967 | ||
summary: Fix Kibana date format and similar overrides in text structure endpoint | ||
area: Machine Learning | ||
type: bug | ||
issues: [] |
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