-
Notifications
You must be signed in to change notification settings - Fork 24.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
Inject host.name
field without relying on (component) templates
#110938
Inject host.name
field without relying on (component) templates
#110938
Conversation
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
Hi @salvatore-campagna, I've created a changelog YAML for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
6217258
to
b1c4f9e
Compare
Hi @salvatore-campagna, I've created a changelog YAML for you. |
@elasticsearchmachine test this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Depending on how we'll implement #110792, we may not need to inject the host.name
field in the future anymore.
So I disabled the failing CI test |
…astic#110938) We do not want to rely on templates or component templates to include the host.name field in indices using LogsDB. The host.name field is a field we sort on by default when LogsDB is used. As a result, we just inject it by default, the same way we do for the @timestamp field. This prevents sorting errors due to missing host.name field in mappings. The host.name is a keyword field and depending on the value of subobjects it will be mapped as a name keyword nested inside a host or as a flat host.name keyword. We also include ignore_above as we normally do for keywords in observability mappings.
💚 Backport successful
|
…tes (#110938) (#111031) * Inject `host.name` field without relying on (component) templates (#110938) We do not want to rely on templates or component templates to include the host.name field in indices using LogsDB. The host.name field is a field we sort on by default when LogsDB is used. As a result, we just inject it by default, the same way we do for the @timestamp field. This prevents sorting errors due to missing host.name field in mappings. The host.name is a keyword field and depending on the value of subobjects it will be mapped as a name keyword nested inside a host or as a flat host.name keyword. We also include ignore_above as we normally do for keywords in observability mappings. * Enable missing hostname test
…astic#110938) We do not want to rely on templates or component templates to include the host.name field in indices using LogsDB. The host.name field is a field we sort on by default when LogsDB is used. As a result, we just inject it by default, the same way we do for the @timestamp field. This prevents sorting errors due to missing host.name field in mappings. The host.name is a keyword field and depending on the value of subobjects it will be mapped as a name keyword nested inside a host or as a flat host.name keyword. We also include ignore_above as we normally do for keywords in observability mappings.
…astic#110938) We do not want to rely on templates or component templates to include the host.name field in indices using LogsDB. The host.name field is a field we sort on by default when LogsDB is used. As a result, we just inject it by default, the same way we do for the @timestamp field. This prevents sorting errors due to missing host.name field in mappings. The host.name is a keyword field and depending on the value of subobjects it will be mapped as a name keyword nested inside a host or as a flat host.name keyword. We also include ignore_above as we normally do for keywords in observability mappings.
We do not want to rely on templates or component templates to include
the
host.name
field in indices using LogsDB. Thehost.name
field is a fieldwe sort on by default when LogsDB is used. As a result, we just inject it
by default, the same way we do for the
@timestamp
field. This preventssorting errors due to missing
host.name
field in mappings.The
host.name
is a keyword field and depending on the value ofsubobjects
it willbe mapped as a
name
keyword nested inside ahost
or as a flathost.name
keyword.We also include
ignore_above
as we normally do for keywords in observability mappings.