mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-15 21:52:47 +01:00
22 lines
567 B
Django/Jinja
22 lines
567 B
Django/Jinja
{%- if grains.role in ['so-heavynode', 'so-receiver'] %}
|
|
{%- set HOST = GLOBALS.hostname %}
|
|
{%- else %}
|
|
{%- set HOST = GLOBALS.manager %}
|
|
{%- endif %}
|
|
{%- set BATCH = salt['pillar.get']('logstash_settings:ls_pipeline_batch_size', 125) %}
|
|
{%- set REDIS_PASS = salt['pillar.get']('redis:config:requirepass') %}
|
|
|
|
output {
|
|
redis {
|
|
host => '{{ HOST }}'
|
|
port => 6379
|
|
data_type => 'list'
|
|
key => 'logstash:unparsed'
|
|
congestion_interval => 1
|
|
congestion_threshold => 50000000
|
|
batch => true
|
|
batch_events => {{ BATCH }}
|
|
password => '{{ REDIS_PASS }}'
|
|
}
|
|
}
|