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