mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 10:42:54 +01:00
Add logstash_settings pillar
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
{%- if grains.role == 'so-heavynode' %}
|
||||
{%- set master = salt['pillar.get']('node:mainip', '') %}
|
||||
{%- set MASTER = salt['pillar.get']('node:mainip', '') %}
|
||||
{%- else %}
|
||||
{%- set master = salt['pillar.get']('static:masterip', '') %}
|
||||
{%- set MASTER = salt['pillar.get']('static:masterip', '') %}
|
||||
{% endif -%}
|
||||
{%- set THREADS = salt['pillar.get']('logstash_settings:ls_input_threads', '') %}
|
||||
|
||||
input {
|
||||
redis {
|
||||
host => '{{ master }}'
|
||||
host => '{{ MASTER }}'
|
||||
data_type => 'list'
|
||||
key => 'logstash:unparsed'
|
||||
type => 'redis-input'
|
||||
# threads => 1
|
||||
threads => {{ THREADS }}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% set MASTER = salt['pillar.get']('static:masterip', '') %}
|
||||
{% set BATCH = salt['pillar.get']('logstash:batch_size', 125) %}
|
||||
{% set BATCH = salt['pillar.get']('logstash_settings:ls_pipeline_batch_size', 125) %}
|
||||
|
||||
output {
|
||||
redis {
|
||||
|
||||
Reference in New Issue
Block a user