Xpack.monitoring.history.duration with a value other than "7d" does not work

Hi,

Referring to the documentation:
https://www.elastic.co/guide/en/elasticsearch/reference/current/monitoring-settings.html

We have value: xpack.monitoring.history.duration (default 7d).

I can execute query:

PUT _cluster/settings
{"persistent": {"xpack.monitoring.history.duration":"30d"}}

... or put this data in elasticsearch config.

If I make queries:

GET _cluster/settings

Elasticsearch return:

{
  "persistent" : {
    "cluster" : {
      "routing" : {
        "allocation" : {
          "enable" : "all"
        }
      }
    },
    "indices" : {
      "breaker" : {
        "fielddata" : {
          "limit" : "45%"
        }
      }
    },
    "xpack" : {
      "monitoring" : {
        "collection" : {
          "enabled" : "true"
        },
        "history" : {
          "duration" : "30d"
        }
      }
    }
  },
  "transient" : { }
}

However, with such a variable (30d) elasticsearch still deletes monitoring indices as for 7d.
There are no changes - still unchanged 7 days.
Where are the possible problems?

Hello @Rysiu,

If you're on a basic license, the history is limited to 7 days, regardless of the setting.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.