Hi,
Trying to get indices rolled over when it gets to a max_size limit using a new index name that has the current date in the name of the index. Read online there is a undocumented feature called new_index where you can use Date Math.
Keep getting this ERROR:
> 2019-06-23 18:52:30,462 DEBUG curator.utils parse_date_pattern:1348 Fully rendered name: <activemq-dev-{now/d}-1}>
> 2019-06-23 18:52:30,464 DEBUG curator.cli process_action:99 Doing the action here.
> 2019-06-23 18:52:30,464 INFO curator.actions.rollover do_action:969 Performing index rollover
> 2019-06-23 18:52:30,465 ERROR curator.cli run:191 Failed to complete action: rollover. <class 'curator.exceptions.FailedExecution'>: Exception encountered. Rerun with loglevel DEBUG and/or check Elasticsearch logs for more information. Exception: RequestError(400, u'no handler found for uri [/activemq-dev/_rollover/<activemq-dev-{now/d}-1}>?wait_for_active_shards=0&dry_run=false] and method [POST]', u'no handler found for uri [/activemq-dev/_rollover/<activemq-dev-{now/d}-1}>?wait_for_active_shards=0&dry_run=false] and method [POST]')
This is a snip of the configue
1:
action: rollover
description: >-
Rollover the index associated with alias 'aliasname', which should be in the
format of prefix-000001 (or similar), or prefix-YYYY.MM.DD-1.
options:
name: activemq-dev
new_index: '<activemq-dev-{now/d}-1}>'
conditions:
max_age: 1s
max_docs: 1000000
max_size: 5m
extra_settings:
index.number_of_shards: 5
index.number_of_replicas: 1
disable_action: False
Not sure why it's not creating the index, but not using date math the index gets created (example: activemq-dev-0000001)
Thanks