kind

edit

This setting is only used with the pattern
filtertype and is a required setting.

This setting tells the pattern what pattern type to match. Acceptable values for this setting are prefix, suffix, timestring, and regex.

Filter chaining

It is important to note that while filters can be chained, each is linked by an implied logical AND operation. If you want to match from one of several different patterns, as with a logical OR operation, you can do so with the pattern filtertype using regex as the kind.

This example shows how to select multiple indices based on them beginning with either alpha-, bravo-, or charlie-:

  filters:
  - filtertype: pattern
    kind: regex
    value: '^(alpha-|bravo-|charlie-).*$'

Explaining all of the different ways in which regular expressions can be used is outside the scope of this document, but hopefully this gives you some idea of how a regular expression pattern can be used when a logical OR is desired.

There is no default value. This setting must be set by the user or an exception will be raised, and execution will halt.