输出:
output {
elasticsearch {
hosts => ["localhost"]
index => "logstash-%{+YYYY.MM.dd}"
}
}
索引模板:
{
"logstash" : {
"order" : 0,
"index_patterns" : [
"logstash-*"
],
"settings" : {
"index" : {
"number_of_shards" : "1"
}
},
"mappings" : { },
"aliases" : { }
}
在 ES7.2 中,创建的是 logstash 索引,而不是 logstash-2020.xx.xx 这种索引。求大佬指点一下,如何才能再次回到如何获取 Logstash 使用带有日期标记的索引?
output {
elasticsearch {
hosts => ["localhost"]
index => "logstash-%{+YYYY.MM.dd}"
}
}
索引模板:
{
"logstash" : {
"order" : 0,
"index_patterns" : [
"logstash-*"
],
"settings" : {
"index" : {
"number_of_shards" : "1"
}
},
"mappings" : { },
"aliases" : { }
}
在 ES7.2 中,创建的是 logstash 索引,而不是 logstash-2020.xx.xx 这种索引。求大佬指点一下,如何才能再次回到如何获取 Logstash 使用带有日期标记的索引?

