Skip to content

Commit d1b8b5c

Browse files
authored
[7.x] Add _meta information to built-in ILM policies (#73629) (#73671)
We already ship templates that include the _meta map for things like component and composable index templates, and we use the "managed": true indicator for many of our built-in items within Elasticsearch. This commit adds a description and managed flag to each of the ILM policies we ship by default.
1 parent 9ff5b72 commit d1b8b5c

7 files changed

+28
-0
lines changed

x-pack/plugin/core/src/main/resources/fleet-actions-results-ilm-policy.json

+4
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@
1717
}
1818
}
1919
}
20+
},
21+
"_meta": {
22+
"description": "default policy for fleet action results indices",
23+
"managed": true
2024
}
2125
}

x-pack/plugin/core/src/main/resources/ilm-history-ilm-policy.json

+4
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"delete": {}
1515
}
1616
}
17+
},
18+
"_meta": {
19+
"description": "default policy for the ILM history indices",
20+
"managed": true
1721
}
1822
}

x-pack/plugin/core/src/main/resources/logs-policy.json

+4
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@
88
}
99
}
1010
}
11+
},
12+
"_meta": {
13+
"description": "default policy for the logs index template installed by x-pack",
14+
"managed": true
1115
}
1216
}

x-pack/plugin/core/src/main/resources/metrics-policy.json

+4
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@
88
}
99
}
1010
}
11+
},
12+
"_meta": {
13+
"description": "default policy for the metrics index template installed by x-pack",
14+
"managed": true
1115
}
1216
}

x-pack/plugin/core/src/main/resources/slm-history-ilm-policy.json

+4
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414
"delete": {}
1515
}
1616
}
17+
},
18+
"_meta": {
19+
"description": "default policy for the SLM history indices",
20+
"managed": true
1721
}
1822
}

x-pack/plugin/core/src/main/resources/synthetics-policy.json

+4
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@
88
}
99
}
1010
}
11+
},
12+
"_meta": {
13+
"description": "default policy for the synthetics index template installed by x-pack",
14+
"managed": true
1115
}
1216
}

x-pack/plugin/core/src/main/resources/watch-history-ilm-policy.json

+4
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66
"delete": {}
77
}
88
}
9+
},
10+
"_meta": {
11+
"description": "default policy for the watcher history indices",
12+
"managed": true
913
}
1014
}

0 commit comments

Comments
 (0)