Hello,
Today i discovered that my wazuh reached 1000 shards.
So I did like in this articel below for wazauh-alerts:.
But, when i select alert from, for example today: Indices-> wazuh-alerts-4.x-2024.04.04 this policy also remove alerts from this day. (but in definition is older that 90d)
Questions:
1.Why is removing data not older that 90d ??
2.Is it possible to assing policy automaticly to all alerts from all days also for new ?? Because in above article i must select a day with alerts, assing policy etc. - it looks the same as I select day and then select "Delete" Action from menu.
Def of the policy
{
"id": "wazuh-alert-retention-policy",
"seqNo": 686,
"primaryTerm": 1,
"policy": {
"policy_id": "wazuh-alert-retention-policy",
"description": "A sample description of the policy",
"last_updated_time": 1712224216602,
"schema_version": 18,
"error_notification": null,
"default_state": "delete_alerts",
"states": [
{
"name": "initial",
"actions": [],
"transitions": [
{
"state_name": "delete_alerts",
"conditions": {
"min_index_age": "90d"
}
}
]
},
{
"name": "delete_alerts",
"actions": [
{
"retry": {
"count": 3,
"backoff": "exponential",
"delay": "1m"
},
"delete": {}
}
],
"transitions": []
}
],
"ism_template": [
{
"index_patterns": [
"wazuh-alerts-*"
],
"priority": 1,
"last_updated_time": 1712222510829
}
]
}
}