7.7 ILM Best Compression

From the release notes of 7.7 there is
Adding best_compression #49974

I have upgraded to 7.7 and cannot find best compression under ILM and cannot find anything in the guides. Has thise been implemented yet?

Thanks
Phil

Yes, you do this by setting "codec": "best_compression" in the force-merge action.

Hi @DavidTurner,

I have tried modifying my ILM via the below:


PUT _ilm/policy/winlogbeat-7.5.0
{
  "policy": {
    "phases": {
      "warm": {
        "actions": {
          "forcemerge" : {
            "max_num_segments": 1,
            "codec": "best_compression"
          }
        }
      }
    }
  }
}

But i get:

{
  "error" : {
    "root_cause" : [
      {
        "type" : "x_content_parse_exception",
        "reason" : "[8:13] [forcemerge] unknown field [codec]"
      }
    ],
    "type" : "x_content_parse_exception",
    "reason" : "[8:22] [put_lifecycle_request] failed to parse field [policy]",
    "caused_by" : {
      "type" : "x_content_parse_exception",
      "reason" : "[8:22] [lifecycle_policy] failed to parse field [phases]",
      "caused_by" : {
        "type" : "x_content_parse_exception",
        "reason" : "[8:22] [phases] failed to parse field [warm]",
        "caused_by" : {
          "type" : "x_content_parse_exception",
          "reason" : "[8:22] [phase] failed to parse field [actions]",
          "caused_by" : {
            "type" : "x_content_parse_exception",
            "reason" : "[8:22] [actions] failed to parse field [forcemerge]",
            "caused_by" : {
              "type" : "x_content_parse_exception",
              "reason" : "[8:13] [forcemerge] unknown field [codec]"
            }
          }
        }
      }
    }
  },
  "status" : 400
}

Any suggestions?

Oh dear. It was supposed to be called codec but it seems it's actually index_codec in 7.7.0. I opened https://github.com/elastic/elasticsearch/issues/57034 to disentangle this.

@DavidTurner

Great thank you, it has now accepted that.

Thanks
Phil

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