# 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 log_size_limit = salt['pillar.get']('elasticsearch:log_size_limit', '') -%} 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: pattern kind: regex value: '^(so-case.*)$' exclude: True - filtertype: space source: creation_date use_age: True disk_space: {{log_size_limit}}