-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Better default mappings for logs #88777
Comments
Pinging @elastic/es-search (Team:Search) |
Some ideas and options on how we can mitigate the challenges:
Set
Cons:
Make Pros:
Cons:
Set
Only index fields that are commonly used for searching or filtering. Either disable dynamic mappings or use dynamic: runtime. See also #85692 (comment) |
@giladgal brought up the question whether we can leverage synthetic _source by default. That's definitely a question we should discuss in more detail. One challenge is that we'd not want any dynamic field to be indexed, therefore, we can't set But what if there was a way to customize the Storing each value of the original doc may still consume less disk space compared to storing the full _source. Not sure what that would mean for being able to query across conflicting types, though. Could you still index two docs like |
The fact that runtime fields rely on _source does not necessarily mean that _source cannot be synthetic. The feature that you are describing reminds me of dynamic templates. Though it sounds like what you are looking for is a less manual way to map all fields so that they are compatible with synthetic source? You would want to for instance enable doc_values whenever supported, but fallback to _source for field types that don't support doc_values. This is something that we have been considering for a while as a follow-up of the current synthetic source work. |
I'm not sure using synthetic source would be the right solution here. In general when things go wrong, we should always keep the original So my take is, having "only" |
I went through this issue one more time, and while I agree with the high-level "better default mappings for logs" goal, I think that we should get together and discuss goals and options, and once we have a clearer idea, open more focused issues against the ES repo. Closing for now. |
There are several pitfalls when using the default mappings for logs (the
logs-*-*
index template):"host": "foo", "host.name": "foo"
)"foo": 42, "foo": "bar"
)process.argv
)The text was updated successfully, but these errors were encountered: