在 logstash 中禁用索引轮换

Disable index rotation in logstash

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

感谢您的帮助。

我想你的输出配置有一个 elasticsearch output in your logstash configuration. If that's the case, you can add the index property,即没有模式,只是一个普通的索引名称(不过没有大写字符)

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