Below is the elasticsearch output plugin in logstash
output {
elasticsearch {
hosts => ["https://10.5.36.5:9200"]
index => "test-axiom"
# ilm_rollover_alias => "hub-axiom-new"
# ilm_pattern => "{now/d}-000001"
# ilm_policy => "axiom5-new"
document_id => "%{unqid}"
template => "/etc/logstash/templatehot/logstash-test.json"
user => "adfad"
password => "dnjvafaj"
ssl => true
ssl_certificate_verification => false
cacert => "/etc/logstash/ca.crt"
}
}
This is the template i am using so that the index gets created in hot node
{
"index_patterns": ["test-ax*"],
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"index.routing.allocation.require.data":"hot"
}
}
the index is getting created in warm node instead
test-axiom 0 p STARTED 32625 64.6mb 10.5.36.10 data-warm-3
test-axiom 0 r STARTED 32625 65mb 10.5.36.14 data-warm-1