Skip to content

Commit

Permalink
Add _meta information to built-in ILM policies (elastic#73629)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dakrone committed Jun 2, 2021
1 parent 50d4a37 commit 8f00050
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@
}
}
}
},
"_meta": {
"description": "default policy for fleet action results indices",
"managed": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@
"delete": {}
}
}
},
"_meta": {
"description": "default policy for the ILM history indices",
"managed": true
}
}
4 changes: 4 additions & 0 deletions x-pack/plugin/core/src/main/resources/logs-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
}
}
}
},
"_meta": {
"description": "default policy for the logs index template installed by x-pack",
"managed": true
}
}
4 changes: 4 additions & 0 deletions x-pack/plugin/core/src/main/resources/metrics-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
}
}
}
},
"_meta": {
"description": "default policy for the metrics index template installed by x-pack",
"managed": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@
"delete": {}
}
}
},
"_meta": {
"description": "default policy for the SLM history indices",
"managed": true
}
}
4 changes: 4 additions & 0 deletions x-pack/plugin/core/src/main/resources/synthetics-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
}
}
}
},
"_meta": {
"description": "default policy for the synthetics index template installed by x-pack",
"managed": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
"delete": {}
}
}
},
"_meta": {
"description": "default policy for the watcher history indices",
"managed": true
}
}

0 comments on commit 8f00050

Please sign in to comment.