We collect telemetry from our systems and store each event in a service bus, ready for ingestion. We have also setup a data stream for ingesting telemetry events, with a corresponding ILM policy with automatic rollover, such that a new backing index would be created at least once a day. Events are read from the service bus and indexed in the data stream.
Suppose that a problem occurs and the telemetry ingestion to the data-stream is interrupted, is later resumed, but the timestamp of the events no longer match the date of the backing index. I.e. events from 2022-08-21 are indexed in a backing index .ds-telemetries-2022.08.24*
, instead of .ds-telemetries-2022-08-21*
. Is it at all possible to move existing data from one backing index to another?
The reason for the question is that we want to be able to query specific backing indexes based on the creation date of the backing index, instead of querying the timestamp of the event, and be able to assume that all telemetry events for a specific date can be found in its corresponding backing index. A query like this would be able to hit all telemetry events for a specified month.
GET /.ds-telemetries-2022.08*/_search
{
"size": 20,
"seq_no_primary_term": true,
"query": {
"match_all": { }
}
}