mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-24 17:03:27 +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' %}
|
{%- if salt['grains.get']('role') == 'so-master' %}
|
||||||
{%- set nodetype = 'master' %}
|
{%- set nodetype = 'master' %}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
@@ -5,7 +6,7 @@
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
output {
|
output {
|
||||||
redis {
|
redis {
|
||||||
host => 'so-redis'
|
host => '{{ master }}'
|
||||||
data_type => 'list'
|
data_type => 'list'
|
||||||
{%- if nodetype == 'parser' %}
|
{%- if nodetype == 'parser' %}
|
||||||
key => 'logstash:parsed'
|
key => 'logstash:parsed'
|
||||||
|
|||||||
Reference in New Issue
Block a user