mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
28 lines
902 B
YAML
28 lines
902 B
YAML
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
|
|
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
|
|
# https://securityonion.net/license; you may not use this file except in compliance with the
|
|
# Elastic License 2.0.
|
|
|
|
{%- set DELETE_DAYS = CURATORMERGED['logs-system-application-default'].delete %}
|
|
actions:
|
|
1:
|
|
action: delete_indices
|
|
description: >-
|
|
Delete Elastic Agent system application indices when older than {{ DELETE_DAYS }} days.
|
|
options:
|
|
ignore_empty_list: True
|
|
disable_action: False
|
|
filters:
|
|
- filtertype: pattern
|
|
kind: regex
|
|
value: '^(.ds-logs-system.application-default.*)$'
|
|
- filtertype: age
|
|
source: name
|
|
direction: older
|
|
timestring: '%Y.%m.%d'
|
|
unit: days
|
|
unit_count: {{ DELETE_DAYS }}
|
|
exclude:
|
|
|
|
|