mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix logstash outputs
This commit is contained in:
@@ -8,12 +8,7 @@ output {
|
||||
if [module] =~ "zeek" and "import" not in [tags] {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-zeek-%{+YYYY.MM.dd}"
|
||||
template_name => "so-zeek"
|
||||
template => "/templates/so-zeek-template.json"
|
||||
|
||||
@@ -8,12 +8,7 @@ output {
|
||||
if "import" in [tags] {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-import-%{+YYYY.MM.dd}"
|
||||
template_name => "so-import"
|
||||
template => "/templates/so-import-template.json"
|
||||
|
||||
@@ -7,12 +7,7 @@
|
||||
output {
|
||||
if [event_type] == "sflow" {
|
||||
elasticsearch {
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-flow-%{+YYYY.MM.dd}"
|
||||
template_name => "so-flow"
|
||||
template => "/templates/so-flow-template.json"
|
||||
|
||||
@@ -7,12 +7,7 @@
|
||||
output {
|
||||
if [event_type] == "ids" and "import" not in [tags] {
|
||||
elasticsearch {
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-ids-%{+YYYY.MM.dd}"
|
||||
template_name => "so-ids"
|
||||
template => "/templates/so-ids-template.json"
|
||||
|
||||
@@ -8,12 +8,7 @@ output {
|
||||
if [module] =~ "syslog" {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}"
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-syslog-%{+YYYY.MM.dd}"
|
||||
template_name => "so-syslog"
|
||||
template => "/templates/so-syslog-template.json"
|
||||
|
||||
@@ -8,12 +8,7 @@ output {
|
||||
if [module] =~ "osquery" {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-osquery-%{+YYYY.MM.dd}"
|
||||
template_name => "so-osquery"
|
||||
template => "/templates/so-osquery-template.json"
|
||||
|
||||
@@ -7,12 +7,7 @@
|
||||
output {
|
||||
if "firewall" in [tags] {
|
||||
elasticsearch {
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-firewall-%{+YYYY.MM.dd}"
|
||||
template_name => "so-firewall"
|
||||
template => "/templates/so-firewall-template.json"
|
||||
|
||||
@@ -8,12 +8,7 @@ output {
|
||||
if [module] =~ "suricata" and "import" not in [tags] {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-ids-%{+YYYY.MM.dd}"
|
||||
template_name => "so-ids"
|
||||
template => "/templates/so-ids-template.json"
|
||||
|
||||
@@ -8,12 +8,7 @@ output {
|
||||
if "beat-ext" in [tags] and "import" not in [tags] {
|
||||
elasticsearch {
|
||||
pipeline => "beats.common"
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-beats-%{+YYYY.MM.dd}"
|
||||
template_name => "so-beats"
|
||||
template => "/templates/so-beats-template.json"
|
||||
|
||||
@@ -8,12 +8,7 @@ output {
|
||||
if [module] =~ "ossec" {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-ossec-%{+YYYY.MM.dd}"
|
||||
template_name => "so-ossec"
|
||||
template => "/templates/so-ossec-template.json"
|
||||
|
||||
@@ -8,12 +8,7 @@ output {
|
||||
if [module] =~ "strelka" {
|
||||
elasticsearch {
|
||||
pipeline => "%{module}.%{dataset}"
|
||||
{%- if FEATURES is sameas true %}
|
||||
hosts => "https://{{ ES }}"
|
||||
cacert => '/ca/ca.crt'
|
||||
{%- else %}
|
||||
hosts => "{{ ES }}"
|
||||
{%- endif %}
|
||||
index => "so-strelka-%{+YYYY.MM.dd}"
|
||||
template_name => "so-strelka"
|
||||
template => "/templates/so-strelka-template.json"
|
||||
|
||||
Reference in New Issue
Block a user