Skip to content

[docs] xpack.monitoring.history.duration doesn't accept month #40021

@kiju98

Description

@kiju98

https://www.elastic.co/guide/en/elasticsearch/reference/current/monitoring-settings.html has

xpack.monitoring.history.duration
Sets the 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.

I tested with 1m and 1M to set it to 1 month on Elasticsearch 6.6.0 but they produced the following error:

 “org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: failed to parse value [1m] for setting [xpack.monitoring.history.duration], must be >= [24h]”

Looks like both m and M are considered as minutes and I see it accepts h and s.

I think it would be better if it is added to document that xpack.monitoring.history.duration accepts only d for days, h for hours, m and M for minutes, s for seconds but not months.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions