Querying indices that match an index pattern

Trying to query all indices that match a given pattern, exact or partial (with *). The aggregation on _field doesn't work since that doesn't seem to match indices with no documents. And I looked into the _cat/indices API which seems like it would work except I can't get it to limit the results to a reasonable amount. Specifying ?size=100 doesn't seem to do anything.

So questions are:

  1. Is there a way to limit the # of indices coming back from the _cat API
  2. If not, is there another way that this would work?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.