mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fix redis input
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
{%- set THREADS = salt['pillar.get']('logstash_settings:ls_input_threads', '') %}
|
{% set THREADS = salt['pillar.get']('logstash_settings:ls_input_threads', '') -%}
|
||||||
{%- set BATCH = salt['pillar.get']('logstash_settings:ls_pipeline_batch_size', 125) %}
|
{% set BATCH = salt['pillar.get']('logstash_settings:ls_pipeline_batch_size', 125) -%}
|
||||||
|
{% from 'logstash/map.jinja' import REDIS_NODES with context -%}
|
||||||
|
|
||||||
{%- from 'logstash/map.jinja' import EXTRA_HOSTS with context %}
|
{% for index in range(REDIS_NODES|length) -%}
|
||||||
|
{% for host in REDIS_NODES[index] -%}
|
||||||
{%- for host_ip in EXTRA_HOSTS %}
|
|
||||||
input {
|
input {
|
||||||
redis {
|
redis {
|
||||||
host => '{{ host_ip.split(':')[0] }}'
|
host => '{{ host }}'
|
||||||
port => 9696
|
port => 9696
|
||||||
ssl => true
|
ssl => true
|
||||||
data_type => 'list'
|
data_type => 'list'
|
||||||
@@ -16,4 +16,5 @@ input {
|
|||||||
batch_count => {{ BATCH }}
|
batch_count => {{ BATCH }}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{%- endfor %}
|
{% endfor %}
|
||||||
|
{% endfor -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user