NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
cat nodeattrs
editcat nodeattrs
editThe nodeattrs
command shows custom node attributes.
For example:
GET /_cat/nodeattrs?v
Could look like:
node host ip attr value ... node-0 127.0.0.1 127.0.0.1 testattr test ...
The first few columns (node
, host
, ip
) give you basic info per node
and the attr
and value
columns give you the custom node attributes,
one per line.
Columns
editBelow is an exhaustive list of the existing headers that can be
passed to nodeattrs?h=
to retrieve the relevant details in ordered
columns. If no headers are specified, then those marked to Appear
by Default will appear. If any header is specified, then the defaults
are not used.
Aliases can be used in place of the full header name for brevity.
Columns appear in the order that they are listed below unless a
different order is specified (e.g., h=attr,value
versus h=value,attr
).
When specifying headers, the headers are not placed in the output
by default. To have the headers appear in the output, use verbose
mode (v
). The header name will match the supplied value (e.g.,
pid
versus p
). For example:
GET /_cat/nodeattrs?v&h=name,pid,attr,value
Might look like:
name pid attr value ... node-0 19566 testattr test ...
Header | Alias | Appear by Default | Description | Example |
---|---|---|---|---|
|
|
Yes |
Name of the node |
DKDM97B |
|
|
No |
Unique node ID |
k0zy |
|
|
No |
Process ID |
13061 |
|
|
Yes |
Host name |
n1 |
|
|
Yes |
IP address |
127.0.1.1 |
|
|
No |
Bound transport port |
9300 |
|
|
Yes |
Attribute name |
rack |
|
|
Yes |
Attribute value |
rack123 |