Fix logstash outputs

This commit is contained in:
Mike Reeves
2020-08-11 13:58:28 -04:00
parent 362749ca85
commit 8daf11f085
11 changed files with 0 additions and 55 deletions

View File

@@ -8,12 +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 is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-zeek-%{+YYYY.MM.dd}" index => "so-zeek-%{+YYYY.MM.dd}"
template_name => "so-zeek" template_name => "so-zeek"
template => "/templates/so-zeek-template.json" template => "/templates/so-zeek-template.json"

View File

@@ -8,12 +8,7 @@ output {
if "import" in [tags] { if "import" in [tags] {
elasticsearch { elasticsearch {
pipeline => "%{module}.%{dataset}" pipeline => "%{module}.%{dataset}"
{%- if FEATURES is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-import-%{+YYYY.MM.dd}" index => "so-import-%{+YYYY.MM.dd}"
template_name => "so-import" template_name => "so-import"
template => "/templates/so-import-template.json" template => "/templates/so-import-template.json"

View File

@@ -7,12 +7,7 @@
output { output {
if [event_type] == "sflow" { if [event_type] == "sflow" {
elasticsearch { elasticsearch {
{%- if FEATURES is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-flow-%{+YYYY.MM.dd}" index => "so-flow-%{+YYYY.MM.dd}"
template_name => "so-flow" template_name => "so-flow"
template => "/templates/so-flow-template.json" template => "/templates/so-flow-template.json"

View File

@@ -7,12 +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 is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-ids-%{+YYYY.MM.dd}" index => "so-ids-%{+YYYY.MM.dd}"
template_name => "so-ids" template_name => "so-ids"
template => "/templates/so-ids-template.json" template => "/templates/so-ids-template.json"

View File

@@ -8,12 +8,7 @@ output {
if [module] =~ "syslog" { if [module] =~ "syslog" {
elasticsearch { elasticsearch {
pipeline => "%{module}" pipeline => "%{module}"
{%- if FEATURES is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-syslog-%{+YYYY.MM.dd}" index => "so-syslog-%{+YYYY.MM.dd}"
template_name => "so-syslog" template_name => "so-syslog"
template => "/templates/so-syslog-template.json" template => "/templates/so-syslog-template.json"

View File

@@ -8,12 +8,7 @@ output {
if [module] =~ "osquery" { if [module] =~ "osquery" {
elasticsearch { elasticsearch {
pipeline => "%{module}.%{dataset}" pipeline => "%{module}.%{dataset}"
{%- if FEATURES is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-osquery-%{+YYYY.MM.dd}" index => "so-osquery-%{+YYYY.MM.dd}"
template_name => "so-osquery" template_name => "so-osquery"
template => "/templates/so-osquery-template.json" template => "/templates/so-osquery-template.json"

View File

@@ -7,12 +7,7 @@
output { output {
if "firewall" in [tags] { if "firewall" in [tags] {
elasticsearch { elasticsearch {
{%- if FEATURES is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-firewall-%{+YYYY.MM.dd}" index => "so-firewall-%{+YYYY.MM.dd}"
template_name => "so-firewall" template_name => "so-firewall"
template => "/templates/so-firewall-template.json" template => "/templates/so-firewall-template.json"

View File

@@ -8,12 +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 is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-ids-%{+YYYY.MM.dd}" index => "so-ids-%{+YYYY.MM.dd}"
template_name => "so-ids" template_name => "so-ids"
template => "/templates/so-ids-template.json" template => "/templates/so-ids-template.json"

View File

@@ -8,12 +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 is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-beats-%{+YYYY.MM.dd}" index => "so-beats-%{+YYYY.MM.dd}"
template_name => "so-beats" template_name => "so-beats"
template => "/templates/so-beats-template.json" template => "/templates/so-beats-template.json"

View File

@@ -8,12 +8,7 @@ output {
if [module] =~ "ossec" { if [module] =~ "ossec" {
elasticsearch { elasticsearch {
pipeline => "%{module}.%{dataset}" pipeline => "%{module}.%{dataset}"
{%- if FEATURES is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-ossec-%{+YYYY.MM.dd}" index => "so-ossec-%{+YYYY.MM.dd}"
template_name => "so-ossec" template_name => "so-ossec"
template => "/templates/so-ossec-template.json" template => "/templates/so-ossec-template.json"

View File

@@ -8,12 +8,7 @@ output {
if [module] =~ "strelka" { if [module] =~ "strelka" {
elasticsearch { elasticsearch {
pipeline => "%{module}.%{dataset}" pipeline => "%{module}.%{dataset}"
{%- if FEATURES is sameas true %}
hosts => "https://{{ ES }}"
cacert => '/ca/ca.crt'
{%- else %}
hosts => "{{ ES }}" hosts => "{{ ES }}"
{%- endif %}
index => "so-strelka-%{+YYYY.MM.dd}" index => "so-strelka-%{+YYYY.MM.dd}"
template_name => "so-strelka" template_name => "so-strelka"
template => "/templates/so-strelka-template.json" template => "/templates/so-strelka-template.json"