mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Logstash logic fix
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
{% set MANAGER = salt['grains.get']('master') %}
|
||||
{% set FEATURES = salt['pillar.get']('elastic:features', False) %}
|
||||
|
||||
{% if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
{% set FEATURES = "-features" %}
|
||||
{% else %}
|
||||
{% set FEATURES = '' %}
|
||||
|
||||
@@ -8,7 +8,7 @@ output {
|
||||
if [module] =~ "zeek" and "import" not in [tags] {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
@@ -8,7 +8,7 @@ output {
|
||||
if "import" in [tags] {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
output {
|
||||
if [event_type] == "sflow" {
|
||||
elasticsearch {
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
output {
|
||||
if [event_type] == "ids" and "import" not in [tags] {
|
||||
elasticsearch {
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
@@ -8,7 +8,7 @@ output {
|
||||
if [module] =~ "syslog" {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}"
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
@@ -8,7 +8,7 @@ output {
|
||||
if [module] =~ "osquery" {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
output {
|
||||
if "firewall" in [tags] {
|
||||
elasticsearch {
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
@@ -8,7 +8,7 @@ output {
|
||||
if [module] =~ "suricata" and "import" not in [tags] {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
@@ -8,7 +8,7 @@ output {
|
||||
if "beat-ext" in [tags] and "import" not in [tags] {
|
||||
elasticsearch {
|
||||
pipeline => "beats.common"
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
@@ -8,7 +8,7 @@ output {
|
||||
if [module] =~ "ossec" {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
@@ -8,7 +8,7 @@ output {
|
||||
if [module] =~ "strelka" {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES %}
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
|
||||
Reference in New Issue
Block a user