shiyijiufei 最近的时间轴更新
shiyijiufei

shiyijiufei

V2EX 第 433297 号会员,加入于 2019-08-01 08:05:53 +08:00
根据 shiyijiufei 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
shiyijiufei 最近回复了
2021-03-29 09:52:19 +08:00
回复了 holinhot 创建的主题 Elasticsearch 请问 Elasticsearch Index lifecycle management 是收费版本才能用吗
是免费的,但是索引生命周期需要配合 logstash 或者 filebeat 来使用,
给你发个参考
logstash 上配置写上,我这里的策略名是 all-hot
ilm_rollover_alias => "filebeat-netflow" #滚动别名,跟模板里的一致
ilm_pattern => "{now/d}-000001" #命名规则
ilm_policy => "all-hot" #生命周期策略名称,跟你 kibana 上建的一致


索引模板
{
"index": {
"lifecycle": {
"name": "all-hot",
"rollover_alias": "filebeat-netflow"
},
"number_of_shards": "1",
"refresh_interval": "5s"
}
}

我不用 filebeat,不过类似
求拉
c2hpeWlqaXVmZWlAZ21haWwuY29t
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3521 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 11:36 · PVG 19:36 · LAX 04:36 · JFK 07:36
Developed with CodeLauncher
♥ Do have faith in what you're doing.