-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update rollover.md #8998
Update rollover.md #8998
Conversation
Option doesn't exist: ``` Could not rollover datastream ds-test1 status code: 400 response: {"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:34] [conditions] unknown field [max_primary_shard_size]"}],"type":"x_content_parse_exception","reason":"[1:60] [rollover] failed to parse field [conditions]","caused_by":{"type":"x_content_parse_exception","reason":"[1:34] [conditions] unknown field [max_primary_shard_size]"}},"status":400} ``` ``` print(f"Rollover datastream {datastream}") body = { "conditions": { "max_age": "5d", "max_primary_shard_size": "50gb" } } response = self.requests.post(f"{self.base_url}/{datastream}/_rollover", json=body) if response.status_code == 200: print(f"Rollover datastream {datastream} successful") else: print(f"Could not rollover datastream {datastream} status code: {response.status_code} response: {response.text}") ``` max_size does work. Signed-off-by: Sander van de Geijn <sandervandegeijn@icloud.com>
Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Editorial review -> Merged. Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer. When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference). The doc reviewer will arrange for an editorial review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @sandervandegeijn!
Option doesn't exist: ``` Could not rollover datastream ds-test1 status code: 400 response: {"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:34] [conditions] unknown field [max_primary_shard_size]"}],"type":"x_content_parse_exception","reason":"[1:60] [rollover] failed to parse field [conditions]","caused_by":{"type":"x_content_parse_exception","reason":"[1:34] [conditions] unknown field [max_primary_shard_size]"}},"status":400} ``` ``` print(f"Rollover datastream {datastream}") body = { "conditions": { "max_age": "5d", "max_primary_shard_size": "50gb" } } response = self.requests.post(f"{self.base_url}/{datastream}/_rollover", json=body) if response.status_code == 200: print(f"Rollover datastream {datastream} successful") else: print(f"Could not rollover datastream {datastream} status code: {response.status_code} response: {response.text}") ``` max_size does work. Signed-off-by: Sander van de Geijn <sandervandegeijn@icloud.com> (cherry picked from commit 9c50165) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Option doesn't exist: ``` Could not rollover datastream ds-test1 status code: 400 response: {"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:34] [conditions] unknown field [max_primary_shard_size]"}],"type":"x_content_parse_exception","reason":"[1:60] [rollover] failed to parse field [conditions]","caused_by":{"type":"x_content_parse_exception","reason":"[1:34] [conditions] unknown field [max_primary_shard_size]"}},"status":400} ``` ``` print(f"Rollover datastream {datastream}") body = { "conditions": { "max_age": "5d", "max_primary_shard_size": "50gb" } } response = self.requests.post(f"{self.base_url}/{datastream}/_rollover", json=body) if response.status_code == 200: print(f"Rollover datastream {datastream} successful") else: print(f"Could not rollover datastream {datastream} status code: {response.status_code} response: {response.text}") ``` max_size does work. Signed-off-by: Sander van de Geijn <sandervandegeijn@icloud.com> (cherry picked from commit 9c50165) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Option doesn't exist: ``` Could not rollover datastream ds-test1 status code: 400 response: {"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:34] [conditions] unknown field [max_primary_shard_size]"}],"type":"x_content_parse_exception","reason":"[1:60] [rollover] failed to parse field [conditions]","caused_by":{"type":"x_content_parse_exception","reason":"[1:34] [conditions] unknown field [max_primary_shard_size]"}},"status":400} ``` ``` print(f"Rollover datastream {datastream}") body = { "conditions": { "max_age": "5d", "max_primary_shard_size": "50gb" } } response = self.requests.post(f"{self.base_url}/{datastream}/_rollover", json=body) if response.status_code == 200: print(f"Rollover datastream {datastream} successful") else: print(f"Could not rollover datastream {datastream} status code: {response.status_code} response: {response.text}") ``` max_size does work. Signed-off-by: Sander van de Geijn <sandervandegeijn@icloud.com> (cherry picked from commit 9c50165) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Option doesn't exist: ``` Could not rollover datastream ds-test1 status code: 400 response: {"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:34] [conditions] unknown field [max_primary_shard_size]"}],"type":"x_content_parse_exception","reason":"[1:60] [rollover] failed to parse field [conditions]","caused_by":{"type":"x_content_parse_exception","reason":"[1:34] [conditions] unknown field [max_primary_shard_size]"}},"status":400} ``` ``` print(f"Rollover datastream {datastream}") body = { "conditions": { "max_age": "5d", "max_primary_shard_size": "50gb" } } response = self.requests.post(f"{self.base_url}/{datastream}/_rollover", json=body) if response.status_code == 200: print(f"Rollover datastream {datastream} successful") else: print(f"Could not rollover datastream {datastream} status code: {response.status_code} response: {response.text}") ``` max_size does work. Signed-off-by: Sander van de Geijn <sandervandegeijn@icloud.com> (cherry picked from commit 9c50165) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Option doesn't exist:
max_size does work.
Description
2.18.0 doesn't know this parameter
Issues Resolved
Closes #[insert issue number]
Version
2.18.0
Frontend features
n/a
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.