Browse Source

Adjust ILM policy for deprecation logs (#82833)

This commit introduces a delete phase for deprecation logs.
This commit also adjusts the rollover criteria such that there
will always be 30-60 days worth of deprecation logs.
Jake Landis 3 years ago
parent
commit
1d0a650ea0

+ 5 - 0
docs/changelog/82833.yaml

@@ -0,0 +1,5 @@
+pr: 82833
+summary: Adjust ILM policy for deprecation logs
+area: "Infra/Logging"
+type: enhancement
+issues: []

+ 11 - 1
x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/deprecation/deprecation-indexing-ilm-policy.json

@@ -4,9 +4,19 @@
       "actions": {
         "rollover": {
           "max_primary_shard_size": "10gb",
-          "max_age": "14d"
+          "max_age": "30d"
         }
       }
+    },
+    "delete": {
+      "min_age": "30d",
+      "actions": {
+        "delete": {}
+      }
     }
+  },
+  "_meta": {
+    "description": "ILM policy used for deprecation logs",
+    "managed": true
   }
 }