Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> (cherry picked from commit 9c50165) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information