anchor.diff:  [[_using_date_math_with_the_rollover_api]]
   ===== Use date math with a rollover
   
  -It can be useful to use <<date-math-index-names,date math>> to name the
  -rollover index according to the date that the index rolled over, e.g.
  +If the rollover target is an index alias, it can be useful to use <<date-math-index-names,date math>>
  +to name the rollover index according to the date that the index rolled over, e.g.
   `logstash-2016.02.03`.  The rollover API supports date math, but requires the
  -index name to end with a dash followed by a number, e.g.
  -`logstash-2016.02.03-1` which is incremented every time the index is rolled
  -over. For instance:
  +index name to end with a dash followed by a number, e.g. `logstash-2016.02.03-1`
  +which is incremented every time the index is rolled over. For instance:
   
   [source,console]
   --------------------------------------------------
  
positive.code: 
  include::{docdir}/indices/create-index.asciidoc[tag=index-name-reqs]
  
  *This parameter is not required
  if the alias is assigned to an index name that ends with `-` and a number,
  such as `logs-000001`.
  In this case,
  the name of the new index follows the same pattern,
  incrementing the number.
  For example,
  `logs-000001` increments to `logs-000002`.
  This number is zero-padded with a length of 6,
  regardless of the prior index name.
  
  If the existing index for the alias does not match this pattern,
  this parameter is required.
  --
  
  
  
negative.code: [[rollover-index-api-path-params]]
  ==== {api-path-parms-title}
  
  `<rollover-target>`::
  (Required*, string)
  Name of the existing index alias or data stream on which to
  perform the rollover.
  
  
  `<target-index>`::
  