-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.7: Remove IP fields from default_field in Elasticsearch template #11399
Conversation
We might also want to keep this as is if nothing that's shipped is actually broken. The templates are specifically generated to work within Kibana, and Kibana does not seem to have a problem. That when directly querying Elasticsearch indexes created from Beats templates it's now necessary to add What do people think? |
Note that a properly populated |
@webmat Isn't |
jenkins, test this |
I think we should definitively revert this change for 6.7. I would consider it a bug here as it's an unintended breaking change which could cause issues when users updated from 6.6 to 6.7. We could introduce this in 7.0 potentially so I suggest we move this discussion there. |
jenkins, test this |
Failing test in winlogbeat is not related. @adriansr will open a follow up PR. |
#11035 added IP fields to the
default_field
array in Elasticsearch templates. Unfortunately, this has the side effect of breaking simple queries directly against Elasticsearch:Leads to:
Kibana avoids this by adding
lenient: true
:So it's never a problem for Kibana, and the workaround for the above query is to just add it:
This PR simply removes the IP fields again to restore previous functionality and avoid breaking any existing queries and dashboards.
But we're stuck between a rock and a hard place here: Adding IP fields is clearly valuable to allow users to just paste an IP into the KQL bar (and into a
query_string
query for that matter), but we cannot do it without breaking simple queries becauselenient
defaults tofalse
. :-(I'll open the same PR for 7.0.