Xpack.monitoring.history.duration doesn't work

I have following settings in my elasticsearch.yml file. What I need is to keep a 90 days history of monitoring index data so I can look back and compare.

# xpack settings
xpack.monitoring.history.duration: 90d
xpack.monitoring.exporters.my_local:
  type: local
  use_ingest: false
  index.name.time_format: YYYY.MM

However, at the beginning of each month, the previous month monitoring index is still got deleted automatically. The index name is .monitoring-kibana-2-2017.05 and .monitoring-es-2-2017.05 for example. Hence I lost my monitoring data for last month.

Is there any config I did wrong? Thank you.

Hi @suanmeiguo,

What is your licensing type? With the basic license, we will delete any index after 7 days regardless of the setting.

Let us know,
Chris

Ah that's it. Thank you that's good to know!

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