设置参数 `node.name` 可以自定义 Elasticsearch 节点的名字。 此条 Tips 由 medcl 贡献。

【求助】es6.5 如何修改索引 保存时长

Elasticsearch | 作者 xiaoshancun | 发布于2020年06月04日 | 阅读数:1929

es6.5.4 现在发现.monitoring-logstash-6-* 的索引,也就是在monitoring 模块看到的数据 只能保存最近7天的数据,现在希望能保存的60天的数据方便进行分析。
以下是已经确认过的信息:
1、查看了本机的crontabl 计划任务中的curator 发现是对另外一套集群管理的,并没有 对本集群操作的内容。
2、查看了_template/.monitoring-logstash
并没有发现ilm相关内容

微信图片_20200604113634.png


那么是在那配置了会自动删除7天前的数据呢?
已邀请:

shwtz - 学物理想做演员的IT男

赞同来自:

监控索引的数据保存时间是可以设置的:
查看官方手册的monitoring-settings.html#monitoring-collection-settings
 
xpack.monitoring.history.duration (Dynamic)

(time value) Retention duration beyond which the indices created by a Monitoring exporter are automatically deleted. Defaults to 7d (7 days).

This setting has a minimum value of 1d (1 day) to ensure that something is being monitored, and it cannot be disabled.

要回复问题请先登录注册