This version of the OpenSearch documentation is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
You can get essential statistics about your cluster in an easy-to-understand, tabular format using the compact and aligned text (CAT) API. The CAT API is a human-readable interface that returns plain text instead of traditional JSON.
Using the CAT API, you can answer questions like which node is the elected master, what state is the cluster in, how many documents are in each index, and so on.
To see the available operations in the CAT API, use the following command:
Optional query parameters
You can use the following query parameters with any CAT API to filter your results.
| ||Provides verbose output by adding headers to the columns. It also adds some formatting to help align each of the columns together. All examples in this section include the |
| ||Lists the default and other available headers for a given operation.|
| ||Limits the output to specific headers.|
| ||Returns the result in JSON, YAML, or CBOR formats.|
| ||Sorts the output by the specified columns.|
Query parameter usage examples
You can specify a query parameter to any CAT operation to obtain more specific results.
Get verbose output
To query aliases and get verbose output that includes all column headings in the response, use the
v query parameter.
The response provides more details, such as names of each column in the response.
alias index filter routing.index routing.search is_write_index .kibana .kibana_1 - - - - sample-alias1 sample-index-1 - - - -
Without the verbose parameter,
v, the response simply returns the alias names:
.kibana .kibana_1 - - - - sample-alias1 sample-index-1 - - - -
Get all available headers
To see all the available headers, use the
Get a subset of headers
To limit the output to a subset of headers, use the
Typically, for any operation you can find out what headers are available using the
help parameter, and then use the
h parameter to limit the output to only the headers that you care about.
If you use the Security plugin, make sure you have the appropriate permissions.
- CAT aliases
- CAT allocation
- CAT count
- CAT field data
- CAT health
- CAT indices operation
- CAT cluster manager
- CAT nodeattrs
- CAT nodes operation
- CAT pending tasks
- CAT plugins
- CAT recovery
- CAT repositories
- CAT segment replication
- CAT segments
- CAT shards
- CAT snapshots
- CAT tasks
- CAT templates
- CAT thread pool