mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
Logstash Module - Fix Redis Output hostname
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
{%- set master = grains['master'] %}
|
||||
{%- if salt['grains.get']('role') == 'so-master' %}
|
||||
{%- set nodetype = 'master' %}
|
||||
{%- else %}
|
||||
@@ -5,7 +6,7 @@
|
||||
{%- endif %}
|
||||
output {
|
||||
redis {
|
||||
host => 'so-redis'
|
||||
host => '{{ master }}'
|
||||
data_type => 'list'
|
||||
{%- if nodetype == 'parser' %}
|
||||
key => 'logstash:parsed'
|
||||
|
||||
Reference in New Issue
Block a user