ref
install elasticsearch-head on CentOS 7.3 - AKAI TSUKI
install eleasticsearch on CentOS 7.3 - AKAI TSUKI
check by curl command
[root@cent7no31 ~]# curl -X GET http://localhost:9200/ { "name" : "cent7no31", "cluster_name" : "test-cluster", "cluster_uuid" : "XM0VikGzTve-p7Bb_p81Rw", "version" : { "number" : "5.4.3", "build_hash" : "eed30a8", "build_date" : "2017-06-22T00:34:03.743Z", "build_snapshot" : false, "lucene_version" : "6.5.1" }, "tagline" : "You Know, for Search" } [root@cent7no31 ~]#
cat APIs | Elasticsearch Reference [5.6] | Elastic
[root@cent7no31 ~]# curl -X GET http://localhost:9200/_cat/health 1509877640 19:27:20 test-cluster green 4 3 2 1 0 0 0 0 - 100.0% [root@cent7no31 ~]#
[root@cent7no31 ~]# curl -X GET http://localhost:9200/_cat/health?v epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent 1509877664 19:27:44 test-cluster green 4 3 2 1 0 0 0 0 - 100.0% [root@cent7no31 ~]#
[root@cent7no31 ~]# curl -X GET http://localhost:9200/_cat/master OeS8YZ8vTU-DCZgg7xlX2g 172.16.10.213 172.16.10.213 cent7no13 [root@cent7no31 ~]#
[root@cent7no31 ~]# curl -X GET http://localhost:9200/_cat/master?v id host ip node OeS8YZ8vTU-DCZgg7xlX2g 172.16.10.213 172.16.10.213 cent7no13 [root@cent7no31 ~]#
[root@cent7no31 ~]# curl -X GET http://localhost:9200/_cat/nodes 172.16.10.213 6 71 0 0.00 0.01 0.05 md * cent7no13 172.16.10.212 7 69 0 0.00 0.01 0.05 md - cent7no12 172.16.10.231 5 38 0 0.00 0.01 0.05 - - cent7no31 172.16.10.211 10 69 0 0.00 0.01 0.05 md - cent7no11 [root@cent7no31 ~]#
[root@cent7no31 ~]# curl -X GET http://localhost:9200/_cat/nodes?v ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name 172.16.10.213 6 71 0 0.00 0.01 0.05 md * cent7no13 172.16.10.212 7 69 0 0.00 0.01 0.05 md - cent7no12 172.16.10.231 5 38 0 0.00 0.01 0.05 - - cent7no31 172.16.10.211 10 69 0 0.00 0.01 0.05 md - cent7no11 [root@cent7no31 ~]#