Xpack: How to clean monitoring-es-7*?

Hi, everyone! I'm beginner in ES, but I already have some tasks to be accomplished.
I have two deploys in Elastic's Cloud, one of them is to stored monitoring data (Deploy 2).
I can't understand the reason why for the Elastic doesn't delete the old monitoring-es-7* logs.
I have no idea if I'm in right way, but I think that this commands are necessary for throubleshooting (sorry! :slight_smile: ).
The deploys's configurations:
In Deploy 2 (monitoring):
GET _cluster/settings

{
  "persistent" : {
    "action" : {
      "auto_create_index" : ".ent-search-*-logs-*,-.ent-search-*,+*"
    },
...
    "xpack" : {
      "monitoring" : {
        "migration" : {
          "decommission_alerts" : "true"
        },
        "collection" : {
          "enabled" : "false",
          "interval" : "10s"
        },
        "history" : {
          "duration" : "3d"
        },
        "exporters" : {
          "__no-default-local__" : {
            "type" : "local",
            "enabled" : "false"
          }
...

GET /monitoring-es-/_ilm/explain

{
  "indices" : {
    ".monitoring-es-7-2021.08.04" : {
      "index" : ".monitoring-es-7-2021.08.04",
      "managed" : false
    },
    ".monitoring-es-7-2021.08.03" : {
      "index" : ".monitoring-es-7-2021.08.03",
      "managed" : false
    },
...

GET /_template/.monitoring-es

{
  ".monitoring-es" : {
    "order" : 0,
    "version" : 7120099,
    "index_patterns" : [
      ".monitoring-es-7-*"
    ],
    "settings" : {
      "index" : {
        "format" : "7",
        "codec" : "best_compression",
        "number_of_shards" : "1",
        "auto_expand_replicas" : "0-1",
        "number_of_replicas" : "0"
      }
    },
...

In Deploy 1 (My db)
GET _cluster/settings

{
 ...
    },
    "xpack" : {
      "monitoring" : {
        "collection" : {
          "enabled" : "true",
          "interval" : "10s"
        },
        "exporters" : {
          "__no-default-local__" : {
            "type" : "local",
            "enabled" : "false"
          },
          "found-user-defined" : {
            "host" : [
              "http://containerhost:9244"
            ],
            "headers" : {
              ...
            },
            "type" : "http",
            "enabled" : "true"
          }
        },
        "history" : {
          "duration" : "3d"
        }
      },
...

GET /_template/.monitoring-es*

{
  ".monitoring-es" : {
    "order" : 0,
    "version" : 7000199,
    "index_patterns" : [
      ".monitoring-es-7-*"
    ],
    "settings" : {
      "index" : {
        "format" : "7",
        "codec" : "best_compression",
        "number_of_shards" : "1",
        "auto_expand_replicas" : "0-1",
        "number_of_replicas" : "0"
      }
    },
...

Thank's!

Update.

I created ILM "Monitoring" and after I updated .monitoring-es in Index Management > Legacy Index Templates.
I added "... "lifecycle": { "name": "monitoring" } ..." in Settings.

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