i created a new index template in elasticsearch, which is just a copy-paste of the default logstash template except i renamed it x_logs and put "template" : "x_logs-*"
my output.conf has this
if [type] == x_logs {
elasticsearch {
host => localhost
protocol => "http"
manage_template => false
index => "x_logs-%{+YYYY.MM.dd}"
}
}
is this the correct method of telling logstash to use that new index template for x_logs? am i missing something?