Dear All, I’m currently using elasticsearch and kibana in 8.5.2 version with both ror plugins in 1.47.0
Walking through my current production cluster, I see that my index .readonlyrest_kbn_sessions
is now larger then 52Gb and has 24360548 docs indexed.
Is there any additional parameter I can add in my kibana.yml
file to automatically manage the size or rotation ?
readonlyrest_kbn.sessions_index_name: ".readonlyrest_kbn_sessions"
According to the documentation page: (For Kibana | ReadonlyREST)[Kibana 7.8.x and older | ReadonlyREST] I don’t find any paramters to do so.
As a workaround, I setup a dedicated ilm
- create an index template that match .readonlyrest_kbn_sessions including an ilm policy
- delete the current index: .readonlyrest_kbn_sessions
- let the data stream magic operate
DELETE .readonlyrest_kbn_sessions
PUT _index_template/readonlyrest_kbn
{
"index_patterns": [
".readonlyrest_kbn_sessions*"
],
"template": {
"settings": {
"index": {
"lifecycle": {
"name": "ilm-default",
"rollover_alias": ".readonlyrest_kbn_sessions"
},
"number_of_shards": "1",
"number_of_replicas": "1"
}
}
},
"composed_of": []
}
GET .readonlyrest_kbn_sessions
GET _data_stream/.readonlyrest_kbn_sessions
GET .ds-.readonlyrest_kbn_sessions-2023.02.27-000001/_ilm/explain
It works, but I don’t see any document in my data stream
# GET _cat/indices/.readonlyrest_kbn_sessions/?v&h=index,store.size 200 OK
index store.size
.ds-.readonlyrest_kbn_sessions-2023.02.27-000001 450b
# GET .readonlyrest_kbn_sessions/_ilm/explain 200 OK
{
"indices": {
".ds-.readonlyrest_kbn_sessions-2023.02.27-000001": {
"index": ".ds-.readonlyrest_kbn_sessions-2023.02.27-000001",
"managed": true,
"policy": "ilm-default",
"index_creation_date_millis": 1677510630018,
"time_since_index_creation": "5.14m",
"lifecycle_date_millis": 1677510630018,
"age": "5.14m",
"phase": "hot",
"phase_time_millis": 1677510630266,
"action": "rollover",
"action_time_millis": 1677510630468,
"step": "check-rollover-ready",
"step_time_millis": 1677510630468,
"phase_execution": {
"policy": "ilm-default",
"phase_definition": {
"min_age": "0ms",
"actions": {
"rollover": {
"max_primary_shard_size": "20gb"
}
}
},
"version": 4,
"modified_date_in_millis": 1677066194415
}
}
}
}
Any idea ?
kr,