ocp配置了es,但是参数没有生效

ocp-ce:4.3.5
es:

"version" : {
    "number" : "7.6.2",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
    "build_date" : "2020-03-26T06:34:37.794943Z",
    "build_snapshot" : false,
    "lucene_version" : "8.4.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },

+--------------------------------+-------+---------------+--------------+
| key                            | value | default_value | need_restart |
+--------------------------------+-------+---------------+--------------+
| ocp.analyze.es.index.keep.days | NULL  | 7             |            1 |
+--------------------------------+-------+---------------+--------------+
1 row in set (0.00 sec)

结果es索引半年前的都有。
ocp.analyze.es.index.keep.days 貌似没有生效,不是默认的7天

这个参数设置后,是否重启过OCP?

检查 Elasticsearch/OpenSearch 中索引保留情况
登录所对接的 OpenSearch(或 Elasticsearch)集群,查看相关索引(如 ob_analyze*)的创建时间和存活情况,确认超出设定天数的旧索引是否被自动清理。示例命令(使用 curl):

# 查看所有相关索引
curl -X GET "http://<opensearch-host>:<port>/_cat/indices/ob_analyze*?v&s=index"

# 检查特定索引的信息
curl -X GET "http://<opensearch-host>:<port>/<index-name>"

观察最老的索引是否超过了 keep.days 设置的天数。如果超过仍未删除,说明参数可能未生效或清理任务异常。