[ILM] Fix bug when adding to an index template#249168
Merged
SoniaSanzV merged 4 commits intoelastic:mainfrom Jan 21, 2026
Merged
[ILM] Fix bug when adding to an index template#249168SoniaSanzV merged 4 commits intoelastic:mainfrom
SoniaSanzV merged 4 commits intoelastic:mainfrom
Conversation
Contributor
|
Pinging @elastic/kibana-management (Team:Kibana Management) |
315c14a to
65369b9
Compare
ElenaStoeva
approved these changes
Jan 21, 2026
Contributor
ElenaStoeva
left a comment
There was a problem hiding this comment.
Lgtm, tested locally 👍
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
History
cc @SoniaSanzV |
Contributor
|
Starting backport for target branches: 8.19, 9.1, 9.2, 9.3 |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Jan 21, 2026
## Summary Elasticsearch's `GET index_template` API returns `created_date_millis` and `modified_date_millis` properties, but these properties are not allowed in `PUT index_template` requests, causing Elasticsearch to reject updates. The fix removes these read-only date properties before sending the template back to Elasticsearch in the PUT request. ### How to test * Go to ILM plugin * Click the tree dots icon in the actions column for some custom policy * Click `Add to index template` * Select an index template and save * The policy should correctly be applied to the index template ### Before this change <img width="1170" height="1070" alt="Screenshot 2026-01-15 at 11 01 29" src="https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481" /> ### After this change <img width="1296" height="1159" alt="Screenshot 2026-01-15 at 11 42 30" src="https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a" /> (cherry picked from commit 575e9bb)
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Jan 21, 2026
## Summary Elasticsearch's `GET index_template` API returns `created_date_millis` and `modified_date_millis` properties, but these properties are not allowed in `PUT index_template` requests, causing Elasticsearch to reject updates. The fix removes these read-only date properties before sending the template back to Elasticsearch in the PUT request. ### How to test * Go to ILM plugin * Click the tree dots icon in the actions column for some custom policy * Click `Add to index template` * Select an index template and save * The policy should correctly be applied to the index template ### Before this change <img width="1170" height="1070" alt="Screenshot 2026-01-15 at 11 01 29" src="https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481" /> ### After this change <img width="1296" height="1159" alt="Screenshot 2026-01-15 at 11 42 30" src="https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a" /> (cherry picked from commit 575e9bb)
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Jan 21, 2026
## Summary Elasticsearch's `GET index_template` API returns `created_date_millis` and `modified_date_millis` properties, but these properties are not allowed in `PUT index_template` requests, causing Elasticsearch to reject updates. The fix removes these read-only date properties before sending the template back to Elasticsearch in the PUT request. ### How to test * Go to ILM plugin * Click the tree dots icon in the actions column for some custom policy * Click `Add to index template` * Select an index template and save * The policy should correctly be applied to the index template ### Before this change <img width="1170" height="1070" alt="Screenshot 2026-01-15 at 11 01 29" src="https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481" /> ### After this change <img width="1296" height="1159" alt="Screenshot 2026-01-15 at 11 42 30" src="https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a" /> (cherry picked from commit 575e9bb)
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Jan 21, 2026
## Summary Elasticsearch's `GET index_template` API returns `created_date_millis` and `modified_date_millis` properties, but these properties are not allowed in `PUT index_template` requests, causing Elasticsearch to reject updates. The fix removes these read-only date properties before sending the template back to Elasticsearch in the PUT request. ### How to test * Go to ILM plugin * Click the tree dots icon in the actions column for some custom policy * Click `Add to index template` * Select an index template and save * The policy should correctly be applied to the index template ### Before this change <img width="1170" height="1070" alt="Screenshot 2026-01-15 at 11 01 29" src="https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481" /> ### After this change <img width="1296" height="1159" alt="Screenshot 2026-01-15 at 11 42 30" src="https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a" /> (cherry picked from commit 575e9bb)
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
kibanamachine
added a commit
that referenced
this pull request
Jan 22, 2026
) # Backport This will backport the following commits from `main` to `8.19`: - [[ILM] Fix bug when adding to an index template (#249168)](#249168) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Sonia Sanz Vivas","email":"sonia.sanzvivas@elastic.co"},"sourceCommit":{"committedDate":"2026-01-21T22:54:40Z","message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:ILM","Team:Kibana Management","backport:all-open","v9.4.0"],"title":"[ILM] Fix bug when adding to an index template","number":249168,"url":"https://github.com/elastic/kibana/pull/249168","mergeCommit":{"message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/249168","number":249168,"mergeCommit":{"message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592"}}]}] BACKPORT--> Co-authored-by: Sonia Sanz Vivas <sonia.sanzvivas@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Jan 22, 2026
# Backport This will backport the following commits from `main` to `9.3`: - [[ILM] Fix bug when adding to an index template (#249168)](#249168) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Sonia Sanz Vivas","email":"sonia.sanzvivas@elastic.co"},"sourceCommit":{"committedDate":"2026-01-21T22:54:40Z","message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:ILM","Team:Kibana Management","backport:all-open","v9.4.0"],"title":"[ILM] Fix bug when adding to an index template","number":249168,"url":"https://github.com/elastic/kibana/pull/249168","mergeCommit":{"message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/249168","number":249168,"mergeCommit":{"message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592"}}]}] BACKPORT--> Co-authored-by: Sonia Sanz Vivas <sonia.sanzvivas@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Jan 22, 2026
# Backport This will backport the following commits from `main` to `9.1`: - [[ILM] Fix bug when adding to an index template (#249168)](#249168) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Sonia Sanz Vivas","email":"sonia.sanzvivas@elastic.co"},"sourceCommit":{"committedDate":"2026-01-21T22:54:40Z","message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:ILM","Team:Kibana Management","backport:all-open","v9.4.0"],"title":"[ILM] Fix bug when adding to an index template","number":249168,"url":"https://github.com/elastic/kibana/pull/249168","mergeCommit":{"message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/249168","number":249168,"mergeCommit":{"message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592"}}]}] BACKPORT--> Co-authored-by: Sonia Sanz Vivas <sonia.sanzvivas@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Jan 22, 2026
# Backport This will backport the following commits from `main` to `9.2`: - [[ILM] Fix bug when adding to an index template (#249168)](#249168) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Sonia Sanz Vivas","email":"sonia.sanzvivas@elastic.co"},"sourceCommit":{"committedDate":"2026-01-21T22:54:40Z","message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592","branchLabelMapping":{"^v9.4.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Feature:ILM","Team:Kibana Management","backport:all-open","v9.4.0"],"title":"[ILM] Fix bug when adding to an index template","number":249168,"url":"https://github.com/elastic/kibana/pull/249168","mergeCommit":{"message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.4.0","branchLabelMappingKey":"^v9.4.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/249168","number":249168,"mergeCommit":{"message":"[ILM] Fix bug when adding to an index template (#249168)\n\n## Summary\n\nElasticsearch's `GET index_template` API returns `created_date_millis`\nand `modified_date_millis` properties, but these properties are not\nallowed in `PUT index_template` requests, causing Elasticsearch to\nreject updates. The fix removes these read-only date properties before\nsending the template back to Elasticsearch in the PUT request.\n\n### How to test\n* Go to ILM plugin\n* Click the tree dots icon in the actions column for some custom policy\n* Click `Add to index template`\n* Select an index template and save\n* The policy should correctly be applied to the index template\n\n### Before this change\n<img width=\"1170\" height=\"1070\" alt=\"Screenshot 2026-01-15 at 11 01 29\"\nsrc=\"https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481\"\n/>\n\n### After this change\n<img width=\"1296\" height=\"1159\" alt=\"Screenshot 2026-01-15 at 11 42 30\"\nsrc=\"https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a\"\n/>","sha":"575e9bbd9501018a90a1812ab5cb17dd9658c592"}}]}] BACKPORT--> Co-authored-by: Sonia Sanz Vivas <sonia.sanzvivas@elastic.co>
yuliia-fryshko
pushed a commit
to yuliia-fryshko/kibana
that referenced
this pull request
Jan 22, 2026
## Summary Elasticsearch's `GET index_template` API returns `created_date_millis` and `modified_date_millis` properties, but these properties are not allowed in `PUT index_template` requests, causing Elasticsearch to reject updates. The fix removes these read-only date properties before sending the template back to Elasticsearch in the PUT request. ### How to test * Go to ILM plugin * Click the tree dots icon in the actions column for some custom policy * Click `Add to index template` * Select an index template and save * The policy should correctly be applied to the index template ### Before this change <img width="1170" height="1070" alt="Screenshot 2026-01-15 at 11 01 29" src="https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481" /> ### After this change <img width="1296" height="1159" alt="Screenshot 2026-01-15 at 11 42 30" src="https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a" />
qn895
pushed a commit
to qn895/kibana
that referenced
this pull request
Jan 22, 2026
## Summary Elasticsearch's `GET index_template` API returns `created_date_millis` and `modified_date_millis` properties, but these properties are not allowed in `PUT index_template` requests, causing Elasticsearch to reject updates. The fix removes these read-only date properties before sending the template back to Elasticsearch in the PUT request. ### How to test * Go to ILM plugin * Click the tree dots icon in the actions column for some custom policy * Click `Add to index template` * Select an index template and save * The policy should correctly be applied to the index template ### Before this change <img width="1170" height="1070" alt="Screenshot 2026-01-15 at 11 01 29" src="https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481" /> ### After this change <img width="1296" height="1159" alt="Screenshot 2026-01-15 at 11 42 30" src="https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a" />
dennis-tismenko
pushed a commit
to dennis-tismenko/kibana
that referenced
this pull request
Jan 22, 2026
## Summary Elasticsearch's `GET index_template` API returns `created_date_millis` and `modified_date_millis` properties, but these properties are not allowed in `PUT index_template` requests, causing Elasticsearch to reject updates. The fix removes these read-only date properties before sending the template back to Elasticsearch in the PUT request. ### How to test * Go to ILM plugin * Click the tree dots icon in the actions column for some custom policy * Click `Add to index template` * Select an index template and save * The policy should correctly be applied to the index template ### Before this change <img width="1170" height="1070" alt="Screenshot 2026-01-15 at 11 01 29" src="https://github.com/user-attachments/assets/45d86252-4466-4d51-bd1a-75a47cd1b481" /> ### After this change <img width="1296" height="1159" alt="Screenshot 2026-01-15 at 11 42 30" src="https://github.com/user-attachments/assets/6047c7b6-f4d0-4b19-8f23-29ecbf8fcb7a" />
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Elasticsearch's
GET index_templateAPI returnscreated_date_millisandmodified_date_millisproperties, but these properties are not allowed inPUT index_templaterequests, causing Elasticsearch to reject updates. The fix removes these read-only date properties before sending the template back to Elasticsearch in the PUT request.How to test
Add to index templateBefore this change
After this change