Open pgomulka opened 2 years ago
Pinging @elastic/es-core-infra (Team:Core/Infra)
I spoke with @qhoxie and we agreed that the >bug
label has to be discussed before we continue with this change as it might be breaking.
I was hoping to change both event.dataset
and data_stream.dataset
to elasticsearch.deprecation
.
We index deprecation to datastream by default and the datastream name is .logs-deprecation-elasticsearch.default
which follow the pattern:
{type}-{dataset}-{namespace},
type = .logs
dataset = deprecation.{product} (e.g. `elasticsearch`)
namespace = default
@ruflin you did mention here that
The data_stream.dataset value in the document must always match the {dataset} part of the data stream,
data_stream.dataset
be breaking the convention you mentioned?event.dataset
be a problem? We already have an override in filebeat for this field https://github.com/elastic/beats/pull/30018/files#r794578451 cc @pugnascotia
logs-elasticsearch.deprecation-default
? So you MUST change the data_stream.dataset field.I also confirmed with Kibana team and they do not use dataset = deprecation.{product}
pattern
In fact they use event.dataset : kibana.log
which is similar to what this issue is trying to do. There is no separate deprecation log in kibana.
https://github.com/elastic/beats/blob/main/filebeat/module/kibana/log/test/log.830.log-expected.json#L4
Elasticsearch Version
8.0
Installed Plugins
No response
Java Version
bundled
OS Version
macos
Problem Description
event.dataset values in ES logs are
elasticsearch.server
,elasticsearch.index_search_slowlog
,elasticsearch.index_indexing_slowlog
but for deprecation logs it isdeprecation.elasticsearch
This probably originates from 7.x where the deprecation log had deprecation.elasticsearch type field, but other logs had simply server, index_search_slowlog and index_indexing_slowlog
Steps to Reproduce
generate deprecation logs. A sample:
beats processor that is overriding this already https://github.com/elastic/beats/pull/30018/files#r794578451
original dicussion on the PR that introduced the change https://github.com/elastic/elasticsearch/pull/68737
we should also discuss
datastream.dataset
field.datastream.dataset
is only set in deprecation logs