Files
securityonion/salt/logstash/pipelines/config/so/0900_input_redis.conf.jinja
2023-05-04 13:07:07 -04:00

21 lines
630 B
Django/Jinja

{%- from 'logstash/map.jinja' import REDIS_NODES with context %}
{%- set REDIS_PASS = salt['pillar.get']('redis:config:requirepass') %}
{%- for index in range(REDIS_NODES|length) %}
{%- for host in REDIS_NODES[index] %}
input {
redis {
host => '{{ host }}'
port => 9696
ssl => true
data_type => 'list'
key => 'logstash:unparsed'
type => 'redis-input'
threads => {{ THREADS }}
batch_count => {{ BATCH }}
password => '{{ REDIS_PASS }}'
}
}
{% endfor %}
{% endfor -%}