I use the following to list indices
curl localhost:9200/_cat/indices?v
Is there is any way to filter or query index names, for example like with wildcards?
curl localhost:9200/_cat/indices - d '{
"query": {
"prefix": {
"index": "sam-"
}
}
}'
What would be the format in elasticsearch.js?
Open Kibana's main menu and click Stack Management > Index Management. The Index Management page contains an overview of your indices. Badges indicate if an index is a follower index, a rollup index, or frozen. Clicking a badge narrows the list to only indices of that type.
Queries are slower it returns a calculated score of how well a document matches the query. Filters are faster because they check only if the document matched or not. Queries produce non-boolean values. Filters produce boolean values.
Simple: curl localhost:9200/_cat/indices/sam-*?v
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With