|
@@ -6,9 +6,10 @@ the cluster nodes information.
|
|
|
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
|
-curl -XGET 'http://localhost:9200/_nodes'
|
|
|
-curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2'
|
|
|
+GET /_nodes
|
|
|
+GET /_nodes/nodeId1,nodeId2
|
|
|
--------------------------------------------------
|
|
|
+// CONSOLE
|
|
|
|
|
|
The first command retrieves information of all the nodes in the cluster.
|
|
|
The second command selectively retrieves nodes information of only
|
|
@@ -52,14 +53,22 @@ It also allows to get only information on `settings`, `os`, `process`, `jvm`,
|
|
|
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
|
-curl -XGET 'http://localhost:9200/_nodes/process'
|
|
|
-curl -XGET 'http://localhost:9200/_nodes/_all/process'
|
|
|
-curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/jvm,process'
|
|
|
+# return just process
|
|
|
+GET /_nodes/process
|
|
|
+
|
|
|
+# same as above
|
|
|
+GET /_nodes/_all/process
|
|
|
+
|
|
|
+# return just jvm and process of only nodeId1 and nodeId2
|
|
|
+GET /_nodes/nodeId1,nodeId2/jvm,process
|
|
|
+
|
|
|
# same as above
|
|
|
-curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/info/jvm,process'
|
|
|
+GET /_nodes/nodeId1,nodeId2/info/jvm,process
|
|
|
|
|
|
-curl -XGET 'http://localhost:9200/_nodes/nodeId1,nodeId2/_all
|
|
|
+# return all the information of only nodeId1 and nodeId2
|
|
|
+GET /_nodes/nodeId1,nodeId2/_all
|
|
|
--------------------------------------------------
|
|
|
+// CONSOLE
|
|
|
|
|
|
The `_all` flag can be set to return all the information - or you can simply omit it.
|
|
|
|
|
@@ -110,23 +119,36 @@ the current running process:
|
|
|
[[plugins-info]]
|
|
|
==== Plugins information
|
|
|
|
|
|
-`plugins` - if set, the result will contain details about the installed plugins
|
|
|
- per node:
|
|
|
+`plugins` - if set, the result will contain details about the installed plugins and modules per node:
|
|
|
|
|
|
-* `name`: plugin name
|
|
|
-* `version`: version of Elasticsearch the plugin was built for
|
|
|
-* `description`: short description of the plugin's purpose
|
|
|
-* `classname`: fully-qualified class name of the plugin's entry point
|
|
|
-* `has_native_controller`: whether or not the plugin has a native controller process
|
|
|
+[source,js]
|
|
|
+--------------------------------------------------
|
|
|
+GET /_nodes/plugins
|
|
|
+--------------------------------------------------
|
|
|
+// CONSOLE
|
|
|
+// TEST[setup:node]
|
|
|
|
|
|
The result will look similar to:
|
|
|
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
|
{
|
|
|
+ "_nodes": ...
|
|
|
"cluster_name": "elasticsearch",
|
|
|
"nodes": {
|
|
|
- "O70_wBv6S9aPPcAKdSUBtw": {
|
|
|
+ "USpTGYaBSIKbgSUJR2Z9lg": {
|
|
|
+ "name": "node-0",
|
|
|
+ "transport_address": "192.168.17:9300",
|
|
|
+ "host": "node-0.elastic.co",
|
|
|
+ "ip": "192.168.17",
|
|
|
+ "version": "{version}",
|
|
|
+ "build_hash": "587409e",
|
|
|
+ "roles": [
|
|
|
+ "master",
|
|
|
+ "data",
|
|
|
+ "ingest"
|
|
|
+ ],
|
|
|
+ "attributes": {},
|
|
|
"plugins": [
|
|
|
{
|
|
|
"name": "analysis-icu",
|
|
@@ -149,11 +171,41 @@ The result will look similar to:
|
|
|
"classname": "org.elasticsearch.ingest.useragent.IngestUserAgentPlugin",
|
|
|
"has_native_controller": false
|
|
|
}
|
|
|
+ ],
|
|
|
+ "modules": [
|
|
|
+ {
|
|
|
+ "name": "lang-painless",
|
|
|
+ "version": "{version}",
|
|
|
+ "description": "An easy, safe and fast scripting language for Elasticsearch",
|
|
|
+ "classname": "org.elasticsearch.painless.PainlessPlugin",
|
|
|
+ "has_native_controller": false
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
--------------------------------------------------
|
|
|
+// TESTRESPONSE[s/"_nodes": \.\.\./"_nodes": $body.$_path,/]
|
|
|
+// TESTRESPONSE[s/"elasticsearch"/$body.cluster_name/]
|
|
|
+// TESTRESPONSE[s/"USpTGYaBSIKbgSUJR2Z9lg"/\$node_name/]
|
|
|
+// TESTRESPONSE[s/"name": "node-0"/"name": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"transport_address": "192.168.17:9300"/"transport_address": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"host": "node-0.elastic.co"/"host": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"ip": "192.168.17"/"ip": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"build_hash": "587409e"/"build_hash": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"roles": \[[^\]]*\]/"roles": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"attributes": \{[^\}]*\}/"attributes": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"plugins": \[[^\]]*\]/"plugins": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"modules": \[[^\]]*\]/"modules": $body.$_path/]
|
|
|
+
|
|
|
+The following information are available for each plugin and module:
|
|
|
+
|
|
|
+* `name`: plugin name
|
|
|
+* `version`: version of Elasticsearch the plugin was built for
|
|
|
+* `description`: short description of the plugin's purpose
|
|
|
+* `classname`: fully-qualified class name of the plugin's entry point
|
|
|
+* `has_native_controller`: whether or not the plugin has a native controller process
|
|
|
+
|
|
|
|
|
|
[float]
|
|
|
[[ingest-info]]
|
|
@@ -162,16 +214,30 @@ The result will look similar to:
|
|
|
`ingest` - if set, the result will contain details about the available
|
|
|
processors per node:
|
|
|
|
|
|
-* `type`: the processor type
|
|
|
+[source,js]
|
|
|
+--------------------------------------------------
|
|
|
+GET /_nodes/ingest
|
|
|
+--------------------------------------------------
|
|
|
+// CONSOLE
|
|
|
+// TEST[setup:node]
|
|
|
|
|
|
The result will look similar to:
|
|
|
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
|
{
|
|
|
+ "_nodes": ...
|
|
|
"cluster_name": "elasticsearch",
|
|
|
"nodes": {
|
|
|
- "O70_wBv6S9aPPcAKdSUBtw": {
|
|
|
+ "USpTGYaBSIKbgSUJR2Z9lg": {
|
|
|
+ "name": "node-0",
|
|
|
+ "transport_address": "192.168.17:9300",
|
|
|
+ "host": "node-0.elastic.co",
|
|
|
+ "ip": "192.168.17",
|
|
|
+ "version": "{version}",
|
|
|
+ "build_hash": "587409e",
|
|
|
+ "roles": [],
|
|
|
+ "attributes": {},
|
|
|
"ingest": {
|
|
|
"processors": [
|
|
|
{
|
|
@@ -221,4 +287,19 @@ The result will look similar to:
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
---------------------------------------------------
|
|
|
+--------------------------------------------------
|
|
|
+// TESTRESPONSE[s/"_nodes": \.\.\./"_nodes": $body.$_path,/]
|
|
|
+// TESTRESPONSE[s/"elasticsearch"/$body.cluster_name/]
|
|
|
+// TESTRESPONSE[s/"USpTGYaBSIKbgSUJR2Z9lg"/\$node_name/]
|
|
|
+// TESTRESPONSE[s/"name": "node-0"/"name": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"transport_address": "192.168.17:9300"/"transport_address": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"host": "node-0.elastic.co"/"host": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"ip": "192.168.17"/"ip": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"build_hash": "587409e"/"build_hash": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"roles": \[[^\]]*\]/"roles": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"attributes": \{[^\}]*\}/"attributes": $body.$_path/]
|
|
|
+// TESTRESPONSE[s/"processors": \[[^\]]*\]/"processors": $body.$_path/]
|
|
|
+
|
|
|
+The following information are available for each ingest processor:
|
|
|
+
|
|
|
+* `type`: the processor type
|