mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Add batch to output
This commit is contained in:
@@ -1,26 +1,14 @@
|
|||||||
{%- if salt['grains.get']('role') == 'so-master' %}
|
{% set MASTER = salt['pillar.get']('static:masterip', '') %}
|
||||||
{% set master = salt['pillar.get']('static:masterip', '') %}
|
{% set BATCH = salt['pillar.get']('logstash:batch_size', 500) %}
|
||||||
{%- set nodetype = 'master' %}
|
|
||||||
{% elif grains.role == 'so-heavynode' %}
|
|
||||||
{% set master = salt['pillar.get']('node:mainip', '') %}
|
|
||||||
{%- set nodetype = salt['pillar.get']('node:node_type', 'search') %}
|
|
||||||
{%- else %}
|
|
||||||
{%- set nodetype = salt['pillar.get']('node:node_type', 'storage') %}
|
|
||||||
{% set master = salt['pillar.get']('static:masterip', '') %}
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
|
|
||||||
output {
|
output {
|
||||||
redis {
|
redis {
|
||||||
host => '{{ master }}'
|
host => '{{ MASTER }}'
|
||||||
data_type => 'list'
|
data_type => 'list'
|
||||||
{%- if nodetype == 'parser' %}
|
|
||||||
key => 'logstash:parsed'
|
|
||||||
{%- else %}
|
|
||||||
key => 'logstash:unparsed'
|
key => 'logstash:unparsed'
|
||||||
{%- endif %}
|
|
||||||
congestion_interval => 1
|
congestion_interval => 1
|
||||||
congestion_threshold => 50000000
|
congestion_threshold => 50000000
|
||||||
# batch_events => 500
|
batch ==> True
|
||||||
|
batch_events => {{ BATCH }}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user