mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
25 lines
756 B
YAML
25 lines
756 B
YAML
{%- set log_size_limit = salt['pillar.get']('elasticsearch:log_size_limit', '') -%}
|
|
---
|
|
# Remember, leave a key empty if there is no value. None will be a string,
|
|
# not a Python "NoneType"
|
|
#
|
|
# Also remember that all examples have 'disable_action' set to True. If you
|
|
# want to use this action as a template, be sure to set this to False after
|
|
# copying it.
|
|
actions:
|
|
1:
|
|
action: delete_indices
|
|
description: >-
|
|
Delete indices when {{log_size_limit}}(GB) is exceeded.
|
|
options:
|
|
ignore_empty_list: True
|
|
disable_action: False
|
|
filters:
|
|
- filtertype: pattern
|
|
kind: regex
|
|
value: '^(logstash-.*|so-.*)$'
|
|
- filtertype: space
|
|
source: creation_date
|
|
use_age: True
|
|
disk_space: {{log_size_limit}}
|