{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/curator/issues/781","repository_url":"https://api.github.com/repos/elastic/curator","labels_url":"https://api.github.com/repos/elastic/curator/issues/781/labels{/name}","comments_url":"https://api.github.com/repos/elastic/curator/issues/781/comments","events_url":"https://api.github.com/repos/elastic/curator/issues/781/events","html_url":"https://github.com/elastic/curator/issues/781","id":182002017,"number":781,"title":"Curator not respecting prefix","user":{"login":"gmoskovicz","id":1675411,"avatar_url":"https://avatars.githubusercontent.com/u/1675411?v=3","gravatar_id":"","url":"https://api.github.com/users/gmoskovicz","html_url":"https://github.com/gmoskovicz","followers_url":"https://api.github.com/users/gmoskovicz/followers","following_url":"https://api.github.com/users/gmoskovicz/following{/other_user}","gists_url":"https://api.github.com/users/gmoskovicz/gists{/gist_id}","starred_url":"https://api.github.com/users/gmoskovicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmoskovicz/subscriptions","organizations_url":"https://api.github.com/users/gmoskovicz/orgs","repos_url":"https://api.github.com/users/gmoskovicz/repos","events_url":"https://api.github.com/users/gmoskovicz/events{/privacy}","received_events_url":"https://api.github.com/users/gmoskovicz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/curator/labels/bug","name":"bug","color":"ff0040"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-10T12:25:19Z","updated_at":"2016-10-10T13:10:36Z","closed_at":null,"body":"Details:\r\n\r\n```\r\n➜  ~ curator --version\r\ncurator, version 3.5.0\r\n```\r\n\r\nI have the following indices in my local environment:\r\n\r\n```\r\n➜  ~ curl localhost:9200/_cat/indices\r\nyellow open index-2016.09.10   5 1 0 0   575b   575b\r\nyellow open index-2016.09.39   5 1 0 0   575b   575b\r\nyellow open index2016.09.39    5 1 0 0   575b   575b\r\ngreen  open .marvel-2016.10.10 1 0 0 0 16.1kb 16.1kb\r\n```\r\n\r\nWhen using a daily time units, the prefix is not being respected. It's still trying to extract the timestamp from indices that the prefix is not match:\r\n\r\n```\r\n➜  ~ curator show indices --older-than 2 --time-unit days --timestring '%Y.%m.%d' --prefix 'sdafksadlfsdf-'\r\n2016-10-10 09:22:26,499 INFO      Job starting: show indices\r\n2016-10-10 09:22:26,509 ERROR     Could not extract a timestamp matching 2016.09.39 from timestring %Y.%m.%d\r\n2016-10-10 09:22:26,509 ERROR     Could not extract a timestamp matching 2016.09.39 from timestring %Y.%m.%d\r\n2016-10-10 09:22:26,509 WARNING   No indices matched provided args: {'regex': None, 'index': (), 'suffix': None, 'newer_than': None, 'closed_only': False, 'prefix': u'sdafksadlfsdf-', 'time_unit': 'days', 'timestring': u'%Y.%m.%d', 'exclude': (), 'older_than': 2, 'all_indices': False}\r\nNo indices matched provided args: {'regex': None, 'index': (), 'suffix': None, 'newer_than': None, 'closed_only': False, 'prefix': u'sdafksadlfsdf-', 'time_unit': 'days', 'timestring': u'%Y.%m.%d', 'exclude': (), 'older_than': 2, 'all_indices': False}\r\n```\r\n\r\nNote that it's trying to extract the timestamp for *index-2016.09.39* and *index2016.09.39*. Given that we know the prefix at this point, i would expect curator to check the prefix before parsing the date. If the prefix is match, then i think that it's fine to raise the ERROR because the weekly indices cannot be extracted by a daily pattern.\r\n\r\n@untergeek what do you think? Is this something that we can address?\r\n\r\nThanks!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/curator/issues/comments/252613670","html_url":"https://github.com/elastic/curator/issues/781#issuecomment-252613670","issue_url":"https://api.github.com/repos/elastic/curator/issues/781","id":252613670,"user":{"login":"untergeek","id":1020383,"avatar_url":"https://avatars.githubusercontent.com/u/1020383?v=3","gravatar_id":"","url":"https://api.github.com/users/untergeek","html_url":"https://github.com/untergeek","followers_url":"https://api.github.com/users/untergeek/followers","following_url":"https://api.github.com/users/untergeek/following{/other_user}","gists_url":"https://api.github.com/users/untergeek/gists{/gist_id}","starred_url":"https://api.github.com/users/untergeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/untergeek/subscriptions","organizations_url":"https://api.github.com/users/untergeek/orgs","repos_url":"https://api.github.com/users/untergeek/repos","events_url":"https://api.github.com/users/untergeek/events{/privacy}","received_events_url":"https://api.github.com/users/untergeek/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T13:10:36Z","updated_at":"2016-10-10T13:10:36Z","body":"I'd change the title to, \"Curator 3 doesn't process filters in a predictable order\""}}
{"actor":{"display_login":"untergeek"}}