DevTech101

DevTech101

Configuring Elasticsearch(ELK) Hot And Warm Data movement

Get the current node box status

curl 'elk1.domain.com:9200/web-sql-log-2016.02.29/_settings?pretty'
{
  "web-sql-log-2016.02.29" : {
    "settings" : {
      "index" : {
        "routing" : {
         "allocation" : {
            "require" : {
              "box_type" : "hot"
            }
          }
        },
        "refresh_interval" : "5s",
        "number_of_shards" : "3",
        "creation_date" : "1456738651834",
        "number_of_replicas" : "1",
        "uuid" : "p67uw-XhQLe78sjEuDDbpg",
        "version" : {
          "created" : "2020099"
        }
      }
    }
  }
}

Change the allocation to hot

#!/bin/bash

#days=""
curl -XPUT "elk1.domain.com:9200/web-sql-log-2016.02.29/_settings" -d '
{
"index.routing.allocation.require.box_type":"warm"
}'

To use curator install it with pip
Note: Curator was not working for me, therefore I was using simple curl (above)

easy_install pip pip
pip install elasticsearch-curator

Get indices (index) space

curl 'elk1.domain.com:9200/_cat/indices?v'

Reference

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
%d bloggers like this: