{"id":5388,"date":"2018-09-27T03:26:27","date_gmt":"2018-09-27T03:26:27","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=5388"},"modified":"2025-05-04T06:08:22","modified_gmt":"2025-05-04T06:08:22","slug":"find-out-elastic-search-health-using-_cat-health","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/find-out-elastic-search-health-using-_cat-health\/","title":{"rendered":"Find out elastic Search health using _cat\/health"},"content":{"rendered":"<div dir=\"ltr\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5391\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2018\/09\/elastic-search.png\" alt=\"\" width=\"600\" height=\"315\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2018\/09\/elastic-search.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2018\/09\/elastic-search-300x158.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/div>\n<div dir=\"ltr\"><\/div>\n<div dir=\"ltr\"><strong>To check elasticsearch cluster health by using (CURL) and Cluster API &#8220;cat&#8221; provieded by elasticsearch<\/strong><\/div>\n<div dir=\"ltr\"><\/div>\n<div dir=\"ltr\">The cat API print the info in JSON format, compact and aligned text which is easy to read by Human eyes. health command when a cluster is malfunctioning. During this period, it\u2019s extremely important to correlate activities across log files, alerting systems, etc. There are two outputs. The HH:MM:SS output is simply for quick human consumption. The epoch time retains more information, including date, and is machine sortable if your recovery spans days.<\/div>\n<div dir=\"ltr\"><\/div>\n<div dir=\"ltr\">curl -X GET &#8220;localhost:9200\/_cat\/master?v&#8221;<\/div>\n<div dir=\"ltr\">GET \/_cat\/master?v<\/div>\n<div dir=\"ltr\"><\/div>\n<div dir=\"ltr\">curl -X GET &#8220;localhost:9200\/_cat\/master?<wbr \/>help&#8221;<\/div>\n<div dir=\"ltr\">GET \/_cat\/master?help<\/div>\n<div dir=\"ltr\"><\/div>\n<div dir=\"ltr\">GET \/_cat\/health?v<\/div>\n<div dir=\"ltr\">curl -X GET &#8220;localhost:9200\/_cat\/health?v&#8221;<\/div>\n<div dir=\"ltr\">curl -XGET &#8216;localhost:9200\/_cluster\/<wbr \/>health?pretty&#8217;<\/div>\n<div dir=\"ltr\"><\/div>\n<div dir=\"ltr\">Reference<\/div>\n<div dir=\"ltr\"><a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/cat.html\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/cat.html&amp;source=gmail&amp;ust=1538103248809000&amp;usg=AFQjCNFUb62KhNzypLoxuKPMucXTKP-MWw\">https:\/\/www.elastic.co\/guide\/<wbr \/>en\/elasticsearch\/reference\/<wbr \/>current\/cat.html<\/a><\/div>\n<div dir=\"ltr\"><a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/cat-health.html\" target=\"_blank\" rel=\"noopener\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/current\/cat-health.html&amp;source=gmail&amp;ust=1538103248809000&amp;usg=AFQjCNGL5IZq0od4OkeF8_iQBUF03n8DxQ\">https:\/\/www.elastic.co\/guide\/<wbr \/>en\/elasticsearch\/reference\/<wbr \/>current\/cat-health.html<\/a><\/div>\n<div>\n<div class=\"m_-6064193128137476312gmail_signature\" dir=\"ltr\">\n<div dir=\"ltr\">\n<div>\n<div dir=\"ltr\">\n<div>\n<div dir=\"ltr\">\n<div>\n<div dir=\"ltr\">\n<div><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To check elasticsearch cluster health by using (CURL) and Cluster API &#8220;cat&#8221; provieded by elasticsearch The cat API print the info in JSON format, compact and aligned text which is&#8230; <\/p>\n","protected":false},"author":1,"featured_media":5391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5936],"tags":[5066,5057,4666,5065],"class_list":["post-5388","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-elastic","tag-curl","tag-elastic","tag-elasticsearch","tag-search"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=5388"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5388\/revisions"}],"predecessor-version":[{"id":5393,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/5388\/revisions\/5393"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/5391"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=5388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=5388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=5388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}