{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/19484","repository_url":"https://api.github.com/repos/elastic/elasticsearch","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19484/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19484/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19484/events","html_url":"https://github.com/elastic/elasticsearch/issues/19484","id":166143054,"number":19484,"title":"Rollover API Numbering not honouring preceding zeroes","user":{"login":"PhaedrusTheGreek","id":4387023,"avatar_url":"https://avatars.githubusercontent.com/u/4387023?v=3","gravatar_id":"","url":"https://api.github.com/users/PhaedrusTheGreek","html_url":"https://github.com/PhaedrusTheGreek","followers_url":"https://api.github.com/users/PhaedrusTheGreek/followers","following_url":"https://api.github.com/users/PhaedrusTheGreek/following{/other_user}","gists_url":"https://api.github.com/users/PhaedrusTheGreek/gists{/gist_id}","starred_url":"https://api.github.com/users/PhaedrusTheGreek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhaedrusTheGreek/subscriptions","organizations_url":"https://api.github.com/users/PhaedrusTheGreek/orgs","repos_url":"https://api.github.com/users/PhaedrusTheGreek/repos","events_url":"https://api.github.com/users/PhaedrusTheGreek/events{/privacy}","received_events_url":"https://api.github.com/users/PhaedrusTheGreek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Index%20APIs","name":":Index APIs","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/bug","name":"bug","color":"9e2c2c"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/low%20hanging%20fruit","name":"low hanging fruit","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/v5.0.0","name":"v5.0.0","color":"dddddd"}],"state":"open","locked":false,"assignee":{"login":"areek","id":753679,"avatar_url":"https://avatars.githubusercontent.com/u/753679?v=3","gravatar_id":"","url":"https://api.github.com/users/areek","html_url":"https://github.com/areek","followers_url":"https://api.github.com/users/areek/followers","following_url":"https://api.github.com/users/areek/following{/other_user}","gists_url":"https://api.github.com/users/areek/gists{/gist_id}","starred_url":"https://api.github.com/users/areek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/areek/subscriptions","organizations_url":"https://api.github.com/users/areek/orgs","repos_url":"https://api.github.com/users/areek/repos","events_url":"https://api.github.com/users/areek/events{/privacy}","received_events_url":"https://api.github.com/users/areek/received_events","type":"User","site_admin":false},"assignees":[{"login":"areek","id":753679,"avatar_url":"https://avatars.githubusercontent.com/u/753679?v=3","gravatar_id":"","url":"https://api.github.com/users/areek","html_url":"https://github.com/areek","followers_url":"https://api.github.com/users/areek/followers","following_url":"https://api.github.com/users/areek/following{/other_user}","gists_url":"https://api.github.com/users/areek/gists{/gist_id}","starred_url":"https://api.github.com/users/areek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/areek/subscriptions","organizations_url":"https://api.github.com/users/areek/orgs","repos_url":"https://api.github.com/users/areek/repos","events_url":"https://api.github.com/users/areek/events{/privacy}","received_events_url":"https://api.github.com/users/areek/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-07-18T17:03:57Z","updated_at":"2016-07-20T07:16:53Z","closed_at":null,"body":"Elasticsearch Rollover API tested on ES 5.0-alpha4\r\n\r\nTested as shown in documentation:\r\nhttps://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html\r\n\r\n```\r\nPUT /roll_me_over-0001\r\n{\r\n  \"aliases\": {\r\n    \"roll_me_over\": {}\r\n  }\r\n}\r\n\r\nPOST roll_me_over/_rollover \r\n{\r\n  \"conditions\": {\r\n    \"max_age\":   \"1m\"\r\n  }\r\n}\r\n```\r\nDocs state that naming will follow the same pattern:\r\n\r\n> If the name of the existing index ends with - and a number — e.g. logs-0001 — then the name of the new index will follow the same pattern, just incrementing the number (logs-0002).\r\n\r\nBut instead:\r\n\r\n```\r\nyellow open   roll_me_over-0001             5   1          0            0       650b           650b\r\nyellow open   roll_me_over-2                5   1          0            0       260b           260b\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/233862806","html_url":"https://github.com/elastic/elasticsearch/issues/19484#issuecomment-233862806","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19484","id":233862806,"user":{"login":"s1monw","id":973334,"avatar_url":"https://avatars.githubusercontent.com/u/973334?v=3","gravatar_id":"","url":"https://api.github.com/users/s1monw","html_url":"https://github.com/s1monw","followers_url":"https://api.github.com/users/s1monw/followers","following_url":"https://api.github.com/users/s1monw/following{/other_user}","gists_url":"https://api.github.com/users/s1monw/gists{/gist_id}","starred_url":"https://api.github.com/users/s1monw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s1monw/subscriptions","organizations_url":"https://api.github.com/users/s1monw/orgs","repos_url":"https://api.github.com/users/s1monw/repos","events_url":"https://api.github.com/users/s1monw/events{/privacy}","received_events_url":"https://api.github.com/users/s1monw/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T07:16:53Z","updated_at":"2016-07-20T07:16:53Z","body":"@areek I think people often sort the index by name for recovery order etc. so that might be the most significant one"}}
{"actor":{"display_login":"s1monw"}}