Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Security Solution][Detection Engine] fixes IM rule failure when frozen tier node is not available #200621

Merged
merged 5 commits into from
Nov 20, 2024

Conversation

vitaliidm
Copy link
Contributor

@vitaliidm vitaliidm commented Nov 18, 2024

Summary

How to test

  1. Create a deployment with cold and frozen data tiers and use following commands to create index and ILM
Data tiers commands
PUT /_cluster/settings
{
  "persistent": {
    "indices.lifecycle.poll_interval": "10s"
  }
}


PUT /_ilm/policy/filtering_data_tiers
{
  "policy": {
    "phases": {
        "frozen": {
          "min_age": "10s",
          "actions": {
            "searchable_snapshot": {
              "snapshot_repository": "found-snapshots",
              "force_merge_index": true
            }
          }
        },
        "hot": {
          "min_age": "0ms",
          "actions": {
            "set_priority": {
              "priority": 100
            }
          }
        }
    }
  }
}


PUT /_index_template/filtering_data_tiers_template
{
  "index_patterns": [
    "filtering_data_tiers*"
  ],
  "template": {
    "settings": {
      "index.lifecycle.name": "filtering_data_tiers",
      "index.lifecycle.rollover_alias": "test-filtering_data_tiers"
    },
    "mappings": {
      "_meta": {
        "version": "1.6.0"
      },
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "host": {
          "properties": {
            "name": {
              "type": "keyword",
              "ignore_above": 1024
            }
          }
        }
      }
    }
  }
}

PUT /filtering_data_tiers-000001
{
  "aliases": {
    "filtering_data_tiers": {
      "is_write_index": true
    }
  }
}


POST filtering_data_tiers/_doc
{
  "@timestamp": "2024-07-08T17:00:01.000Z",
  "host.name": "test-0"
}

  1. Wait until document moves to frozen tier
  2. Run another set of commands to persist document in hot tier
Data tiers commands
PUT /_ilm/policy/filtering_data_tiers
{
  "policy": {
    "phases": {
        "frozen": {
          "min_age": "100h",
          "actions": {
            "searchable_snapshot": {
              "snapshot_repository": "found-snapshots",
              "force_merge_index": true
            }
          }
        },
        "hot": {
          "min_age": "0ms",
          "actions": {
            "set_priority": {
              "priority": 100
            }
          }
        }
    }
  }
}


PUT /filtering_data_tiers-000002
{
  "aliases": {
    "filtering_data_tiers": {
      "is_write_index": true
    }
  }
}


POST filtering_data_tiers/_doc
{
  "@timestamp": "2024-11-08T17:00:01.000Z",
  "host.name": "test-1"
}

  1. Pause frozen tier node (admin permissions needed for this) or increase memory of it, forcing node to become unavailable for short period of time.
  2. Run IM rule with advanced setting filtering out frozen data tier
  3. Rule should not fail and generate an alert from document in a hot tier

@vitaliidm vitaliidm self-assigned this Nov 18, 2024
@vitaliidm vitaliidm added release_note:skip Skip the PR/issue when compiling release notes Team:Detections and Resp Security Detection Response Team Team:Detection Engine Security Solution Detection Engine Area backport:version Backport to applied version labels v9.0.0 v8.16.0 v8.17.0 v8.18.0 labels Nov 19, 2024
@vitaliidm vitaliidm marked this pull request as ready for review November 19, 2024 13:16
@vitaliidm vitaliidm requested a review from a team as a code owner November 19, 2024 13:16
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-engine (Team:Detection Engine)

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #17 / get_column_renderer should render a suricata row data when it is a suricata row

Metrics [docs]

✅ unchanged

History

cc @vitaliidm

@vitaliidm vitaliidm merged commit ee397d6 into elastic:main Nov 20, 2024
44 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.18, 8.x

https://github.com/elastic/kibana/actions/runs/11931008234

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 20, 2024
…en tier node is not available (elastic#200621)

## Summary

- addresses elastic/security-team#11117

### How to test

1. Create a deployment with cold and frozen data tiers and use following
commands to create index and ILM

<details>
<summary>Data tiers commands</summary>

```JSON

PUT /_cluster/settings
{
  "persistent": {
    "indices.lifecycle.poll_interval": "10s"
  }
}

PUT /_ilm/policy/filtering_data_tiers
{
  "policy": {
    "phases": {
        "frozen": {
          "min_age": "10s",
          "actions": {
            "searchable_snapshot": {
              "snapshot_repository": "found-snapshots",
              "force_merge_index": true
            }
          }
        },
        "hot": {
          "min_age": "0ms",
          "actions": {
            "set_priority": {
              "priority": 100
            }
          }
        }
    }
  }
}

PUT /_index_template/filtering_data_tiers_template
{
  "index_patterns": [
    "filtering_data_tiers*"
  ],
  "template": {
    "settings": {
      "index.lifecycle.name": "filtering_data_tiers",
      "index.lifecycle.rollover_alias": "test-filtering_data_tiers"
    },
    "mappings": {
      "_meta": {
        "version": "1.6.0"
      },
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "host": {
          "properties": {
            "name": {
              "type": "keyword",
              "ignore_above": 1024
            }
          }
        }
      }
    }
  }
}

PUT /filtering_data_tiers-000001
{
  "aliases": {
    "filtering_data_tiers": {
      "is_write_index": true
    }
  }
}

POST filtering_data_tiers/_doc
{
  "@timestamp": "2024-07-08T17:00:01.000Z",
  "host.name": "test-0"
}

```

</details>

2. Wait until document moves to frozen tier
3. Run another set of commands to persist document in hot tier

<details>
<summary>Data tiers commands</summary>

```JSON

PUT /_ilm/policy/filtering_data_tiers
{
  "policy": {
    "phases": {
        "frozen": {
          "min_age": "100h",
          "actions": {
            "searchable_snapshot": {
              "snapshot_repository": "found-snapshots",
              "force_merge_index": true
            }
          }
        },
        "hot": {
          "min_age": "0ms",
          "actions": {
            "set_priority": {
              "priority": 100
            }
          }
        }
    }
  }
}

PUT /filtering_data_tiers-000002
{
  "aliases": {
    "filtering_data_tiers": {
      "is_write_index": true
    }
  }
}

POST filtering_data_tiers/_doc
{
  "@timestamp": "2024-11-08T17:00:01.000Z",
  "host.name": "test-1"
}

```
</details>

4. Pause frozen tier node (admin permissions needed for this) or
increase memory of it, forcing node to become unavailable for short
period of time.
5. Run IM rule with [advanced
setting](https://www.elastic.co/guide/en/security/current/advanced-settings.html#exclude-cold-frozen-data-rule-executions)
filtering out frozen data tier
6. Rule should not fail and generate an alert from document in a hot
tier

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit ee397d6)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 20, 2024
…en tier node is not available (elastic#200621)

## Summary

- addresses elastic/security-team#11117

### How to test

1. Create a deployment with cold and frozen data tiers and use following
commands to create index and ILM

<details>
<summary>Data tiers commands</summary>

```JSON

PUT /_cluster/settings
{
  "persistent": {
    "indices.lifecycle.poll_interval": "10s"
  }
}

PUT /_ilm/policy/filtering_data_tiers
{
  "policy": {
    "phases": {
        "frozen": {
          "min_age": "10s",
          "actions": {
            "searchable_snapshot": {
              "snapshot_repository": "found-snapshots",
              "force_merge_index": true
            }
          }
        },
        "hot": {
          "min_age": "0ms",
          "actions": {
            "set_priority": {
              "priority": 100
            }
          }
        }
    }
  }
}

PUT /_index_template/filtering_data_tiers_template
{
  "index_patterns": [
    "filtering_data_tiers*"
  ],
  "template": {
    "settings": {
      "index.lifecycle.name": "filtering_data_tiers",
      "index.lifecycle.rollover_alias": "test-filtering_data_tiers"
    },
    "mappings": {
      "_meta": {
        "version": "1.6.0"
      },
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "host": {
          "properties": {
            "name": {
              "type": "keyword",
              "ignore_above": 1024
            }
          }
        }
      }
    }
  }
}

PUT /filtering_data_tiers-000001
{
  "aliases": {
    "filtering_data_tiers": {
      "is_write_index": true
    }
  }
}

POST filtering_data_tiers/_doc
{
  "@timestamp": "2024-07-08T17:00:01.000Z",
  "host.name": "test-0"
}

```

</details>

2. Wait until document moves to frozen tier
3. Run another set of commands to persist document in hot tier

<details>
<summary>Data tiers commands</summary>

```JSON

PUT /_ilm/policy/filtering_data_tiers
{
  "policy": {
    "phases": {
        "frozen": {
          "min_age": "100h",
          "actions": {
            "searchable_snapshot": {
              "snapshot_repository": "found-snapshots",
              "force_merge_index": true
            }
          }
        },
        "hot": {
          "min_age": "0ms",
          "actions": {
            "set_priority": {
              "priority": 100
            }
          }
        }
    }
  }
}

PUT /filtering_data_tiers-000002
{
  "aliases": {
    "filtering_data_tiers": {
      "is_write_index": true
    }
  }
}

POST filtering_data_tiers/_doc
{
  "@timestamp": "2024-11-08T17:00:01.000Z",
  "host.name": "test-1"
}

```
</details>

4. Pause frozen tier node (admin permissions needed for this) or
increase memory of it, forcing node to become unavailable for short
period of time.
5. Run IM rule with [advanced
setting](https://www.elastic.co/guide/en/security/current/advanced-settings.html#exclude-cold-frozen-data-rule-executions)
filtering out frozen data tier
6. Rule should not fail and generate an alert from document in a hot
tier

---------

Co-authored-by: kibanamachine <[email protected]>
(cherry picked from commit ee397d6)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.16
8.18 The branch "8.18" does not exist
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 200621

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 20, 2024
…n frozen tier node is not available (#200621) (#200877)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution][Detection Engine] fixes IM rule failure when
frozen tier node is not available
(#200621)](#200621)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Vitalii
Dmyterko","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-20T10:00:16Z","message":"[Security
Solution][Detection Engine] fixes IM rule failure when frozen tier node
is not available (#200621)\n\n## Summary\r\n\r\n- addresses
https://github.com/elastic/security-team/issues/11117\r\n\r\n### How to
test\r\n\r\n\r\n1. Create a deployment with cold and frozen data tiers
and use following\r\ncommands to create index and
ILM\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n```JSON\r\n\r\nPUT /_cluster/settings\r\n{\r\n
\"persistent\": {\r\n \"indices.lifecycle.poll_interval\": \"10s\"\r\n
}\r\n}\r\n\r\n\r\nPUT /_ilm/policy/filtering_data_tiers\r\n{\r\n
\"policy\": {\r\n \"phases\": {\r\n \"frozen\": {\r\n \"min_age\":
\"10s\",\r\n \"actions\": {\r\n \"searchable_snapshot\": {\r\n
\"snapshot_repository\": \"found-snapshots\",\r\n \"force_merge_index\":
true\r\n }\r\n }\r\n },\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n
\"actions\": {\r\n \"set_priority\": {\r\n \"priority\": 100\r\n }\r\n
}\r\n }\r\n }\r\n }\r\n}\r\n\r\n\r\nPUT
/_index_template/filtering_data_tiers_template\r\n{\r\n
\"index_patterns\": [\r\n \"filtering_data_tiers*\"\r\n ],\r\n
\"template\": {\r\n \"settings\": {\r\n \"index.lifecycle.name\":
\"filtering_data_tiers\",\r\n \"index.lifecycle.rollover_alias\":
\"test-filtering_data_tiers\"\r\n },\r\n \"mappings\": {\r\n \"_meta\":
{\r\n \"version\": \"1.6.0\"\r\n },\r\n \"properties\": {\r\n
\"@timestamp\": {\r\n \"type\": \"date\"\r\n },\r\n \"host\": {\r\n
\"properties\": {\r\n \"name\": {\r\n \"type\": \"keyword\",\r\n
\"ignore_above\": 1024\r\n }\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\nPUT /filtering_data_tiers-000001\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-07-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-0\"\r\n}\r\n\r\n\r\n```\r\n\r\n</details>\r\n\r\n2. Wait until
document moves to frozen tier\r\n3. Run another set of commands to
persist document in hot tier\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n\r\n```JSON\r\n\r\nPUT
/_ilm/policy/filtering_data_tiers\r\n{\r\n \"policy\": {\r\n \"phases\":
{\r\n \"frozen\": {\r\n \"min_age\": \"100h\",\r\n \"actions\": {\r\n
\"searchable_snapshot\": {\r\n \"snapshot_repository\":
\"found-snapshots\",\r\n \"force_merge_index\": true\r\n }\r\n }\r\n
},\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n \"actions\": {\r\n
\"set_priority\": {\r\n \"priority\": 100\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\n\r\nPUT /filtering_data_tiers-000002\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-11-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-1\"\r\n}\r\n\r\n\r\n```\r\n</details>\r\n\r\n4. Pause frozen tier
node (admin permissions needed for this) or\r\nincrease memory of it,
forcing node to become unavailable for short\r\nperiod of time.\r\n5.
Run IM rule with
[advanced\r\nsetting](https://www.elastic.co/guide/en/security/current/advanced-settings.html#exclude-cold-frozen-data-rule-executions)\r\nfiltering
out frozen data tier\r\n6. Rule should not fail and generate an alert
from document in a hot\r\ntier\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"ee397d66b8325f25582eb610826991365a4b5f71","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Detections
and Resp","Team:Detection
Engine","v8.16.0","backport:version","v8.17.0","v8.18.0"],"title":"[Security
Solution][Detection Engine] fixes IM rule failure when frozen tier node
is not
available","number":200621,"url":"https://github.com/elastic/kibana/pull/200621","mergeCommit":{"message":"[Security
Solution][Detection Engine] fixes IM rule failure when frozen tier node
is not available (#200621)\n\n## Summary\r\n\r\n- addresses
https://github.com/elastic/security-team/issues/11117\r\n\r\n### How to
test\r\n\r\n\r\n1. Create a deployment with cold and frozen data tiers
and use following\r\ncommands to create index and
ILM\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n```JSON\r\n\r\nPUT /_cluster/settings\r\n{\r\n
\"persistent\": {\r\n \"indices.lifecycle.poll_interval\": \"10s\"\r\n
}\r\n}\r\n\r\n\r\nPUT /_ilm/policy/filtering_data_tiers\r\n{\r\n
\"policy\": {\r\n \"phases\": {\r\n \"frozen\": {\r\n \"min_age\":
\"10s\",\r\n \"actions\": {\r\n \"searchable_snapshot\": {\r\n
\"snapshot_repository\": \"found-snapshots\",\r\n \"force_merge_index\":
true\r\n }\r\n }\r\n },\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n
\"actions\": {\r\n \"set_priority\": {\r\n \"priority\": 100\r\n }\r\n
}\r\n }\r\n }\r\n }\r\n}\r\n\r\n\r\nPUT
/_index_template/filtering_data_tiers_template\r\n{\r\n
\"index_patterns\": [\r\n \"filtering_data_tiers*\"\r\n ],\r\n
\"template\": {\r\n \"settings\": {\r\n \"index.lifecycle.name\":
\"filtering_data_tiers\",\r\n \"index.lifecycle.rollover_alias\":
\"test-filtering_data_tiers\"\r\n },\r\n \"mappings\": {\r\n \"_meta\":
{\r\n \"version\": \"1.6.0\"\r\n },\r\n \"properties\": {\r\n
\"@timestamp\": {\r\n \"type\": \"date\"\r\n },\r\n \"host\": {\r\n
\"properties\": {\r\n \"name\": {\r\n \"type\": \"keyword\",\r\n
\"ignore_above\": 1024\r\n }\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\nPUT /filtering_data_tiers-000001\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-07-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-0\"\r\n}\r\n\r\n\r\n```\r\n\r\n</details>\r\n\r\n2. Wait until
document moves to frozen tier\r\n3. Run another set of commands to
persist document in hot tier\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n\r\n```JSON\r\n\r\nPUT
/_ilm/policy/filtering_data_tiers\r\n{\r\n \"policy\": {\r\n \"phases\":
{\r\n \"frozen\": {\r\n \"min_age\": \"100h\",\r\n \"actions\": {\r\n
\"searchable_snapshot\": {\r\n \"snapshot_repository\":
\"found-snapshots\",\r\n \"force_merge_index\": true\r\n }\r\n }\r\n
},\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n \"actions\": {\r\n
\"set_priority\": {\r\n \"priority\": 100\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\n\r\nPUT /filtering_data_tiers-000002\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-11-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-1\"\r\n}\r\n\r\n\r\n```\r\n</details>\r\n\r\n4. Pause frozen tier
node (admin permissions needed for this) or\r\nincrease memory of it,
forcing node to become unavailable for short\r\nperiod of time.\r\n5.
Run IM rule with
[advanced\r\nsetting](https://www.elastic.co/guide/en/security/current/advanced-settings.html#exclude-cold-frozen-data-rule-executions)\r\nfiltering
out frozen data tier\r\n6. Rule should not fail and generate an alert
from document in a hot\r\ntier\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"ee397d66b8325f25582eb610826991365a4b5f71"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200621","number":200621,"mergeCommit":{"message":"[Security
Solution][Detection Engine] fixes IM rule failure when frozen tier node
is not available (#200621)\n\n## Summary\r\n\r\n- addresses
https://github.com/elastic/security-team/issues/11117\r\n\r\n### How to
test\r\n\r\n\r\n1. Create a deployment with cold and frozen data tiers
and use following\r\ncommands to create index and
ILM\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n```JSON\r\n\r\nPUT /_cluster/settings\r\n{\r\n
\"persistent\": {\r\n \"indices.lifecycle.poll_interval\": \"10s\"\r\n
}\r\n}\r\n\r\n\r\nPUT /_ilm/policy/filtering_data_tiers\r\n{\r\n
\"policy\": {\r\n \"phases\": {\r\n \"frozen\": {\r\n \"min_age\":
\"10s\",\r\n \"actions\": {\r\n \"searchable_snapshot\": {\r\n
\"snapshot_repository\": \"found-snapshots\",\r\n \"force_merge_index\":
true\r\n }\r\n }\r\n },\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n
\"actions\": {\r\n \"set_priority\": {\r\n \"priority\": 100\r\n }\r\n
}\r\n }\r\n }\r\n }\r\n}\r\n\r\n\r\nPUT
/_index_template/filtering_data_tiers_template\r\n{\r\n
\"index_patterns\": [\r\n \"filtering_data_tiers*\"\r\n ],\r\n
\"template\": {\r\n \"settings\": {\r\n \"index.lifecycle.name\":
\"filtering_data_tiers\",\r\n \"index.lifecycle.rollover_alias\":
\"test-filtering_data_tiers\"\r\n },\r\n \"mappings\": {\r\n \"_meta\":
{\r\n \"version\": \"1.6.0\"\r\n },\r\n \"properties\": {\r\n
\"@timestamp\": {\r\n \"type\": \"date\"\r\n },\r\n \"host\": {\r\n
\"properties\": {\r\n \"name\": {\r\n \"type\": \"keyword\",\r\n
\"ignore_above\": 1024\r\n }\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\nPUT /filtering_data_tiers-000001\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-07-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-0\"\r\n}\r\n\r\n\r\n```\r\n\r\n</details>\r\n\r\n2. Wait until
document moves to frozen tier\r\n3. Run another set of commands to
persist document in hot tier\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n\r\n```JSON\r\n\r\nPUT
/_ilm/policy/filtering_data_tiers\r\n{\r\n \"policy\": {\r\n \"phases\":
{\r\n \"frozen\": {\r\n \"min_age\": \"100h\",\r\n \"actions\": {\r\n
\"searchable_snapshot\": {\r\n \"snapshot_repository\":
\"found-snapshots\",\r\n \"force_merge_index\": true\r\n }\r\n }\r\n
},\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n \"actions\": {\r\n
\"set_priority\": {\r\n \"priority\": 100\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\n\r\nPUT /filtering_data_tiers-000002\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-11-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-1\"\r\n}\r\n\r\n\r\n```\r\n</details>\r\n\r\n4. Pause frozen tier
node (admin permissions needed for this) or\r\nincrease memory of it,
forcing node to become unavailable for short\r\nperiod of time.\r\n5.
Run IM rule with
[advanced\r\nsetting](https://www.elastic.co/guide/en/security/current/advanced-settings.html#exclude-cold-frozen-data-rule-executions)\r\nfiltering
out frozen data tier\r\n6. Rule should not fail and generate an alert
from document in a hot\r\ntier\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"ee397d66b8325f25582eb610826991365a4b5f71"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Vitalii Dmyterko <[email protected]>
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Nov 22, 2024
paul-tavares added a commit that referenced this pull request Nov 22, 2024
…en frozen tier node is not available (#200621) (#200876)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[Security Solution][Detection Engine] fixes IM rule failure when
frozen tier node is not available
(#200621)](#200621)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Vitalii
Dmyterko","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-20T10:00:16Z","message":"[Security
Solution][Detection Engine] fixes IM rule failure when frozen tier node
is not available (#200621)\n\n## Summary\r\n\r\n- addresses
https://github.com/elastic/security-team/issues/11117\r\n\r\n### How to
test\r\n\r\n\r\n1. Create a deployment with cold and frozen data tiers
and use following\r\ncommands to create index and
ILM\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n```JSON\r\n\r\nPUT /_cluster/settings\r\n{\r\n
\"persistent\": {\r\n \"indices.lifecycle.poll_interval\": \"10s\"\r\n
}\r\n}\r\n\r\n\r\nPUT /_ilm/policy/filtering_data_tiers\r\n{\r\n
\"policy\": {\r\n \"phases\": {\r\n \"frozen\": {\r\n \"min_age\":
\"10s\",\r\n \"actions\": {\r\n \"searchable_snapshot\": {\r\n
\"snapshot_repository\": \"found-snapshots\",\r\n \"force_merge_index\":
true\r\n }\r\n }\r\n },\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n
\"actions\": {\r\n \"set_priority\": {\r\n \"priority\": 100\r\n }\r\n
}\r\n }\r\n }\r\n }\r\n}\r\n\r\n\r\nPUT
/_index_template/filtering_data_tiers_template\r\n{\r\n
\"index_patterns\": [\r\n \"filtering_data_tiers*\"\r\n ],\r\n
\"template\": {\r\n \"settings\": {\r\n \"index.lifecycle.name\":
\"filtering_data_tiers\",\r\n \"index.lifecycle.rollover_alias\":
\"test-filtering_data_tiers\"\r\n },\r\n \"mappings\": {\r\n \"_meta\":
{\r\n \"version\": \"1.6.0\"\r\n },\r\n \"properties\": {\r\n
\"@timestamp\": {\r\n \"type\": \"date\"\r\n },\r\n \"host\": {\r\n
\"properties\": {\r\n \"name\": {\r\n \"type\": \"keyword\",\r\n
\"ignore_above\": 1024\r\n }\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\nPUT /filtering_data_tiers-000001\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-07-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-0\"\r\n}\r\n\r\n\r\n```\r\n\r\n</details>\r\n\r\n2. Wait until
document moves to frozen tier\r\n3. Run another set of commands to
persist document in hot tier\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n\r\n```JSON\r\n\r\nPUT
/_ilm/policy/filtering_data_tiers\r\n{\r\n \"policy\": {\r\n \"phases\":
{\r\n \"frozen\": {\r\n \"min_age\": \"100h\",\r\n \"actions\": {\r\n
\"searchable_snapshot\": {\r\n \"snapshot_repository\":
\"found-snapshots\",\r\n \"force_merge_index\": true\r\n }\r\n }\r\n
},\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n \"actions\": {\r\n
\"set_priority\": {\r\n \"priority\": 100\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\n\r\nPUT /filtering_data_tiers-000002\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-11-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-1\"\r\n}\r\n\r\n\r\n```\r\n</details>\r\n\r\n4. Pause frozen tier
node (admin permissions needed for this) or\r\nincrease memory of it,
forcing node to become unavailable for short\r\nperiod of time.\r\n5.
Run IM rule with
[advanced\r\nsetting](https://www.elastic.co/guide/en/security/current/advanced-settings.html#exclude-cold-frozen-data-rule-executions)\r\nfiltering
out frozen data tier\r\n6. Rule should not fail and generate an alert
from document in a hot\r\ntier\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"ee397d66b8325f25582eb610826991365a4b5f71","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Detections
and Resp","Team:Detection
Engine","v8.16.0","backport:version","v8.17.0","v8.18.0"],"title":"[Security
Solution][Detection Engine] fixes IM rule failure when frozen tier node
is not
available","number":200621,"url":"https://github.com/elastic/kibana/pull/200621","mergeCommit":{"message":"[Security
Solution][Detection Engine] fixes IM rule failure when frozen tier node
is not available (#200621)\n\n## Summary\r\n\r\n- addresses
https://github.com/elastic/security-team/issues/11117\r\n\r\n### How to
test\r\n\r\n\r\n1. Create a deployment with cold and frozen data tiers
and use following\r\ncommands to create index and
ILM\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n```JSON\r\n\r\nPUT /_cluster/settings\r\n{\r\n
\"persistent\": {\r\n \"indices.lifecycle.poll_interval\": \"10s\"\r\n
}\r\n}\r\n\r\n\r\nPUT /_ilm/policy/filtering_data_tiers\r\n{\r\n
\"policy\": {\r\n \"phases\": {\r\n \"frozen\": {\r\n \"min_age\":
\"10s\",\r\n \"actions\": {\r\n \"searchable_snapshot\": {\r\n
\"snapshot_repository\": \"found-snapshots\",\r\n \"force_merge_index\":
true\r\n }\r\n }\r\n },\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n
\"actions\": {\r\n \"set_priority\": {\r\n \"priority\": 100\r\n }\r\n
}\r\n }\r\n }\r\n }\r\n}\r\n\r\n\r\nPUT
/_index_template/filtering_data_tiers_template\r\n{\r\n
\"index_patterns\": [\r\n \"filtering_data_tiers*\"\r\n ],\r\n
\"template\": {\r\n \"settings\": {\r\n \"index.lifecycle.name\":
\"filtering_data_tiers\",\r\n \"index.lifecycle.rollover_alias\":
\"test-filtering_data_tiers\"\r\n },\r\n \"mappings\": {\r\n \"_meta\":
{\r\n \"version\": \"1.6.0\"\r\n },\r\n \"properties\": {\r\n
\"@timestamp\": {\r\n \"type\": \"date\"\r\n },\r\n \"host\": {\r\n
\"properties\": {\r\n \"name\": {\r\n \"type\": \"keyword\",\r\n
\"ignore_above\": 1024\r\n }\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\nPUT /filtering_data_tiers-000001\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-07-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-0\"\r\n}\r\n\r\n\r\n```\r\n\r\n</details>\r\n\r\n2. Wait until
document moves to frozen tier\r\n3. Run another set of commands to
persist document in hot tier\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n\r\n```JSON\r\n\r\nPUT
/_ilm/policy/filtering_data_tiers\r\n{\r\n \"policy\": {\r\n \"phases\":
{\r\n \"frozen\": {\r\n \"min_age\": \"100h\",\r\n \"actions\": {\r\n
\"searchable_snapshot\": {\r\n \"snapshot_repository\":
\"found-snapshots\",\r\n \"force_merge_index\": true\r\n }\r\n }\r\n
},\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n \"actions\": {\r\n
\"set_priority\": {\r\n \"priority\": 100\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\n\r\nPUT /filtering_data_tiers-000002\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-11-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-1\"\r\n}\r\n\r\n\r\n```\r\n</details>\r\n\r\n4. Pause frozen tier
node (admin permissions needed for this) or\r\nincrease memory of it,
forcing node to become unavailable for short\r\nperiod of time.\r\n5.
Run IM rule with
[advanced\r\nsetting](https://www.elastic.co/guide/en/security/current/advanced-settings.html#exclude-cold-frozen-data-rule-executions)\r\nfiltering
out frozen data tier\r\n6. Rule should not fail and generate an alert
from document in a hot\r\ntier\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"ee397d66b8325f25582eb610826991365a4b5f71"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200621","number":200621,"mergeCommit":{"message":"[Security
Solution][Detection Engine] fixes IM rule failure when frozen tier node
is not available (#200621)\n\n## Summary\r\n\r\n- addresses
https://github.com/elastic/security-team/issues/11117\r\n\r\n### How to
test\r\n\r\n\r\n1. Create a deployment with cold and frozen data tiers
and use following\r\ncommands to create index and
ILM\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n```JSON\r\n\r\nPUT /_cluster/settings\r\n{\r\n
\"persistent\": {\r\n \"indices.lifecycle.poll_interval\": \"10s\"\r\n
}\r\n}\r\n\r\n\r\nPUT /_ilm/policy/filtering_data_tiers\r\n{\r\n
\"policy\": {\r\n \"phases\": {\r\n \"frozen\": {\r\n \"min_age\":
\"10s\",\r\n \"actions\": {\r\n \"searchable_snapshot\": {\r\n
\"snapshot_repository\": \"found-snapshots\",\r\n \"force_merge_index\":
true\r\n }\r\n }\r\n },\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n
\"actions\": {\r\n \"set_priority\": {\r\n \"priority\": 100\r\n }\r\n
}\r\n }\r\n }\r\n }\r\n}\r\n\r\n\r\nPUT
/_index_template/filtering_data_tiers_template\r\n{\r\n
\"index_patterns\": [\r\n \"filtering_data_tiers*\"\r\n ],\r\n
\"template\": {\r\n \"settings\": {\r\n \"index.lifecycle.name\":
\"filtering_data_tiers\",\r\n \"index.lifecycle.rollover_alias\":
\"test-filtering_data_tiers\"\r\n },\r\n \"mappings\": {\r\n \"_meta\":
{\r\n \"version\": \"1.6.0\"\r\n },\r\n \"properties\": {\r\n
\"@timestamp\": {\r\n \"type\": \"date\"\r\n },\r\n \"host\": {\r\n
\"properties\": {\r\n \"name\": {\r\n \"type\": \"keyword\",\r\n
\"ignore_above\": 1024\r\n }\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\nPUT /filtering_data_tiers-000001\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-07-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-0\"\r\n}\r\n\r\n\r\n```\r\n\r\n</details>\r\n\r\n2. Wait until
document moves to frozen tier\r\n3. Run another set of commands to
persist document in hot tier\r\n\r\n<details>\r\n<summary>Data tiers
commands</summary>\r\n\r\n\r\n```JSON\r\n\r\nPUT
/_ilm/policy/filtering_data_tiers\r\n{\r\n \"policy\": {\r\n \"phases\":
{\r\n \"frozen\": {\r\n \"min_age\": \"100h\",\r\n \"actions\": {\r\n
\"searchable_snapshot\": {\r\n \"snapshot_repository\":
\"found-snapshots\",\r\n \"force_merge_index\": true\r\n }\r\n }\r\n
},\r\n \"hot\": {\r\n \"min_age\": \"0ms\",\r\n \"actions\": {\r\n
\"set_priority\": {\r\n \"priority\": 100\r\n }\r\n }\r\n }\r\n }\r\n
}\r\n}\r\n\r\n\r\nPUT /filtering_data_tiers-000002\r\n{\r\n \"aliases\":
{\r\n \"filtering_data_tiers\": {\r\n \"is_write_index\": true\r\n }\r\n
}\r\n}\r\n\r\n\r\nPOST filtering_data_tiers/_doc\r\n{\r\n
\"@timestamp\": \"2024-11-08T17:00:01.000Z\",\r\n \"host.name\":
\"test-1\"\r\n}\r\n\r\n\r\n```\r\n</details>\r\n\r\n4. Pause frozen tier
node (admin permissions needed for this) or\r\nincrease memory of it,
forcing node to become unavailable for short\r\nperiod of time.\r\n5.
Run IM rule with
[advanced\r\nsetting](https://www.elastic.co/guide/en/security/current/advanced-settings.html#exclude-cold-frozen-data-rule-executions)\r\nfiltering
out frozen data tier\r\n6. Rule should not fail and generate an alert
from document in a hot\r\ntier\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<[email protected]>","sha":"ee397d66b8325f25582eb610826991365a4b5f71"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Vitalii Dmyterko <[email protected]>
Co-authored-by: Paul Tavares <[email protected]>
@kibanamachine kibanamachine added v8.16.2 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Nov 22, 2024
@vitaliidm vitaliidm removed the v8.16.0 label Nov 22, 2024
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this pull request Nov 26, 2024
…en tier node is not available (elastic#200621)

## Summary

- addresses elastic/security-team#11117

### How to test


1. Create a deployment with cold and frozen data tiers and use following
commands to create index and ILM

<details>
<summary>Data tiers commands</summary>

```JSON

PUT /_cluster/settings
{
  "persistent": {
    "indices.lifecycle.poll_interval": "10s"
  }
}


PUT /_ilm/policy/filtering_data_tiers
{
  "policy": {
    "phases": {
        "frozen": {
          "min_age": "10s",
          "actions": {
            "searchable_snapshot": {
              "snapshot_repository": "found-snapshots",
              "force_merge_index": true
            }
          }
        },
        "hot": {
          "min_age": "0ms",
          "actions": {
            "set_priority": {
              "priority": 100
            }
          }
        }
    }
  }
}


PUT /_index_template/filtering_data_tiers_template
{
  "index_patterns": [
    "filtering_data_tiers*"
  ],
  "template": {
    "settings": {
      "index.lifecycle.name": "filtering_data_tiers",
      "index.lifecycle.rollover_alias": "test-filtering_data_tiers"
    },
    "mappings": {
      "_meta": {
        "version": "1.6.0"
      },
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "host": {
          "properties": {
            "name": {
              "type": "keyword",
              "ignore_above": 1024
            }
          }
        }
      }
    }
  }
}

PUT /filtering_data_tiers-000001
{
  "aliases": {
    "filtering_data_tiers": {
      "is_write_index": true
    }
  }
}


POST filtering_data_tiers/_doc
{
  "@timestamp": "2024-07-08T17:00:01.000Z",
  "host.name": "test-0"
}


```

</details>

2. Wait until document moves to frozen tier
3. Run another set of commands to persist document in hot tier

<details>
<summary>Data tiers commands</summary>


```JSON

PUT /_ilm/policy/filtering_data_tiers
{
  "policy": {
    "phases": {
        "frozen": {
          "min_age": "100h",
          "actions": {
            "searchable_snapshot": {
              "snapshot_repository": "found-snapshots",
              "force_merge_index": true
            }
          }
        },
        "hot": {
          "min_age": "0ms",
          "actions": {
            "set_priority": {
              "priority": 100
            }
          }
        }
    }
  }
}


PUT /filtering_data_tiers-000002
{
  "aliases": {
    "filtering_data_tiers": {
      "is_write_index": true
    }
  }
}


POST filtering_data_tiers/_doc
{
  "@timestamp": "2024-11-08T17:00:01.000Z",
  "host.name": "test-1"
}


```
</details>

4. Pause frozen tier node (admin permissions needed for this) or
increase memory of it, forcing node to become unavailable for short
period of time.
5. Run IM rule with [advanced
setting](https://www.elastic.co/guide/en/security/current/advanced-settings.html#exclude-cold-frozen-data-rule-executions)
filtering out frozen data tier
6. Rule should not fail and generate an alert from document in a hot
tier

---------

Co-authored-by: kibanamachine <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
…en tier node is not available (elastic#200621)

## Summary

- addresses elastic/security-team#11117

### How to test


1. Create a deployment with cold and frozen data tiers and use following
commands to create index and ILM

<details>
<summary>Data tiers commands</summary>

```JSON

PUT /_cluster/settings
{
  "persistent": {
    "indices.lifecycle.poll_interval": "10s"
  }
}


PUT /_ilm/policy/filtering_data_tiers
{
  "policy": {
    "phases": {
        "frozen": {
          "min_age": "10s",
          "actions": {
            "searchable_snapshot": {
              "snapshot_repository": "found-snapshots",
              "force_merge_index": true
            }
          }
        },
        "hot": {
          "min_age": "0ms",
          "actions": {
            "set_priority": {
              "priority": 100
            }
          }
        }
    }
  }
}


PUT /_index_template/filtering_data_tiers_template
{
  "index_patterns": [
    "filtering_data_tiers*"
  ],
  "template": {
    "settings": {
      "index.lifecycle.name": "filtering_data_tiers",
      "index.lifecycle.rollover_alias": "test-filtering_data_tiers"
    },
    "mappings": {
      "_meta": {
        "version": "1.6.0"
      },
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "host": {
          "properties": {
            "name": {
              "type": "keyword",
              "ignore_above": 1024
            }
          }
        }
      }
    }
  }
}

PUT /filtering_data_tiers-000001
{
  "aliases": {
    "filtering_data_tiers": {
      "is_write_index": true
    }
  }
}


POST filtering_data_tiers/_doc
{
  "@timestamp": "2024-07-08T17:00:01.000Z",
  "host.name": "test-0"
}


```

</details>

2. Wait until document moves to frozen tier
3. Run another set of commands to persist document in hot tier

<details>
<summary>Data tiers commands</summary>


```JSON

PUT /_ilm/policy/filtering_data_tiers
{
  "policy": {
    "phases": {
        "frozen": {
          "min_age": "100h",
          "actions": {
            "searchable_snapshot": {
              "snapshot_repository": "found-snapshots",
              "force_merge_index": true
            }
          }
        },
        "hot": {
          "min_age": "0ms",
          "actions": {
            "set_priority": {
              "priority": 100
            }
          }
        }
    }
  }
}


PUT /filtering_data_tiers-000002
{
  "aliases": {
    "filtering_data_tiers": {
      "is_write_index": true
    }
  }
}


POST filtering_data_tiers/_doc
{
  "@timestamp": "2024-11-08T17:00:01.000Z",
  "host.name": "test-1"
}


```
</details>

4. Pause frozen tier node (admin permissions needed for this) or
increase memory of it, forcing node to become unavailable for short
period of time.
5. Run IM rule with [advanced
setting](https://www.elastic.co/guide/en/security/current/advanced-settings.html#exclude-cold-frozen-data-rule-executions)
filtering out frozen data tier
6. Rule should not fail and generate an alert from document in a hot
tier

---------

Co-authored-by: kibanamachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Detection Engine Security Solution Detection Engine Area Team:Detections and Resp Security Detection Response Team v8.16.2 v8.17.0 v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants