Adding some more weirdness to what I am seeing with the 1.7 release:
create a rollover policy:
{
"policy_id": "container-rollover",
"description": "A simple default that rolls indexes over at 1GB or 1 day.",
"last_updated_time": 1591139176328,
"schema_version": 1,
"error_notification": null,
"default_state": "active",
"states": [
{
"name": "active",
"actions": [
{
"rollover": {
"min_size": "1gb",
"min_index_age": "1d"
}
}
],
"transitions": []
}
]
}
create an index:
{
"containerlogs-000001": {
"settings": {
"index": {
"ignore_malformed": "true"
},
"opendistro": {
"index_state_management": {
"policy_id": "container-rollover",
"rollover_alias": "containerlogs"
}
},
"refresh_interval": "45s",
"number_of_shards": "1",
"provided_name": "containerlogs-000001",
"creation_date": "1591146104902",
"number_of_replicas": "1",
"uuid": "G8kDyRntQ_-SZNYXtiIkdw",
"version": {
"created": "7060199"
}
}
}
}
}
NOTE: I added the alias at time of creation (doesn’t show here since its the settings of the index)
Check kibana – see the index initializing with the policy…
check the history index:
{
"_index": ".opendistro-ism-managed-index-history-2020.06.02-000005",
"_type": "_doc",
"_id": "j00kd3IBoht0GWtbMPPz",
"_score": 1,
"_source": {
"managed_index_meta_data": {
"index": "containerlogs-000001",
"index_uuid": "OiU8IpnOTuqVRBW8vC6QOg",
"policy_id": "container-rollover",
"policy_seq_no": 10,
"policy_primary_term": 4,
"state": {
"name": "active",
"start_time": 1591136760051
},
"retry_info": {
"failed": false,
"consumed_retries": 0
},
"info": {
"message": "Successfully initialized policy: container-rollover"
},
"history_timestamp": 1591136760051
}
}
}
Now that it’s initialized, I start indexing data. The index grows to ~25MB and I refresh the ISM page in kibana… Suddenly my index is attempting to rollover:
Ouptut from explain:
{
"containerlogs-000001": {
"index.opendistro.index_state_management.policy_id": "container-rollover",
"index": "containerlogs-000001",
"index_uuid": "G8kDyRntQ_-SZNYXtiIkdw",
"policy_id": "container-rollover",
"policy_seq_no": 41,
"policy_primary_term": 4,
"rolled_over": false,
"state": {
"name": "active",
"start_time": 1591146405278
},
"action": {
"name": "rollover",
"start_time": 1591146705044,
"index": 0,
"failed": false,
"consumed_retries": 0,
"last_retry_time": 0
},
"retry_info": {
"failed": false,
"consumed_retries": 0
},
"info": {
"message": "Attempting to rollover",
"conditions": {
"min_index_age": {
"condition": "1d",
"current": "15m",
"creationDate": 1591146104902
},
"min_size": {
"condition": "1gb",
"current": "95.7mb"
}
}
}
}
}
Pretty sure none of it meets the rollover criteria.
Currently the index is only a few hundred MB, no new index created yet, nothing notable in the logs anywhere. Am I missing something?