I'm trying to create an index template that matches all indexes except those that start with a period. I've tried the following but none work.
"index_patterns": [ "*", "-.*" ] - this is accepted by the create API but still matches indexes that start with a period
"index_patterns": [ "*,-.*" ] - this is rejected by the create template API
"index_patterns" [ " /@&~(\.@)/" ] - this is rejected by the create template API
i would think the first should work but i've found areas where this does not work as expected (see https://github.com/elastic/kibana/issues/17147)
We are currently using Elastic stack 6.4.2