CAT Commands Flashcards

1
Q

What are CAT commands

A

CAT stands for Compact and Aligned Text. The CAT API provides information about the cluster in a human-readable format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Health of cluster

A

GET _cat/health?v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Cluster Nodes

A

GET _cat/nodes?v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Cluster Indices, Shards

A

GET _cat/indices?v
GET _cat/shards?v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Count

A

GET _cat/count?v
GET _cat/count/my_index?v
Count of documents in cluster or index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Segments

A

Provides details about index segments, such as the number of segments per index, memory used, and file sizes.
GET _cat/segments?v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Parameters

A

The v parameter in the examples above includes headers in the output.
The h parameter allows you to specify specific columns to display, e.g., ?h=index,shards,docs.count.
The s parameter allows sorting by a specified column, e.g., ?s=shards.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Repositories

A

Lists the snapshot repositories configured in the cluster.
GET _cat/repositories?v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly