默认情况下,logstash创建格式为logstash-YYYY.MM.DD的索引,该索引实际上每天创建一个索引。是否可以禁用此功能并强制使用logstash将数据推送到特定的索引名称?

谢谢你的帮助。

最佳答案

我想您的logstash配置中有一个 elasticsearch output。如果是这种情况,您可以将 index property添加到您的输出配置中,即不使用模式,而仅使用普通的索引名称(但是不使用大写字符)

output {
    elasticsearch {
        ...
        index => "your_index_name"
        ...
    }
}

关于elasticsearch - 在Logstash中禁用索引轮换,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/32494025/

10-11 22:31
查看更多