Dynamix Pipelines take 1

This commit is contained in:
Mike Reeves
2021-06-09 15:32:39 -04:00
parent 1c7741fdbe
commit 7fba904f75
6 changed files with 11 additions and 66 deletions

View File

@@ -7,7 +7,7 @@ logstash:
- so/9000_output_zeek.conf.jinja
- so/9002_output_import.conf.jinja
- so/9034_output_syslog.conf.jinja
- so/9050_output_elasticsearch.jinja
- so/9050_output_filebeatmodules.conf.jinja
- so/9100_output_osquery.conf.jinja
- so/9400_output_suricata.conf.jinja
- so/9500_output_beats.conf.jinja

View File

@@ -3,4 +3,9 @@ input {
port => "5044"
tags => [ "beat-ext" ]
}
}
filter {
mutate {
rename => {“@metadata” => “metadata”}
}
}

View File

@@ -1,20 +0,0 @@
{%- if grains['role'] == 'so-eval' -%}
{%- set ES = salt['pillar.get']('manager:mainip', '') -%}
{%- else %}
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
{%- endif %}
output {
if [event][module] == 'elasticsearch' {
elasticsearch {
id => "elastic_logs"
pipeline => "filebeat-%{[agent][version]}-elasticsearch-%{[fileset][name]}-pipeline"
hosts => "{{ ES }}"
index => "so-grid-%{+YYYY.MM.dd}"
template_name => "so-common"
template => "/templates/so-common-template.json"
template_overwrite => true
ssl => true
ssl_certificate_verification => false
}
}
}

View File

@@ -4,12 +4,12 @@
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
{%- endif %}
output {
if [event][module] == 'redis' {
if [metadata][pipeline] {
elasticsearch {
id => "redis_logs"
pipeline => "filebeat-%{[agent][version]}-redis-%{[fileset][name]}-pipeline"
id => "filebeat_modules_metadata_pipeline"
pipeline => "%{[metadata][pipeline]}"
hosts => "{{ ES }}"
index => "so-grid-%{+YYYY.MM.dd}"
index => "so-%{[event][module]}-%{+YYYY.MM.dd}"
template_name => "so-common"
template => "/templates/so-common-template.json"
template_overwrite => true
@@ -17,4 +17,4 @@ output {
ssl_certificate_verification => false
}
}
}
}

View File

@@ -1,20 +0,0 @@
{%- if grains['role'] == 'so-eval' -%}
{%- set ES = salt['pillar.get']('manager:mainip', '') -%}
{%- else %}
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
{%- endif %}
output {
if [event][module] == 'kibana' {
elasticsearch {
id => "kibana_logs"
pipeline => "filebeat-%{[agent][version]}-kibana-%{[fileset][name]}-pipeline"
hosts => "{{ ES }}"
index => "so-grid-%{+YYYY.MM.dd}"
template_name => "so-common"
template => "/templates/so-common-template.json"
template_overwrite => true
ssl => true
ssl_certificate_verification => false
}
}
}

View File

@@ -1,20 +0,0 @@
{%- if grains['role'] == 'so-eval' -%}
{%- set ES = salt['pillar.get']('manager:mainip', '') -%}
{%- else %}
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
{%- endif %}
output {
if [event][module] == 'logstash' {
elasticsearch {
id => "logstash_logs"
pipeline => "filebeat-%{[agent][version]}-logstash-%{[fileset][name]}-pipeline"
hosts => "{{ ES }}"
index => "so-grid-%{+YYYY.MM.dd}"
template_name => "so-common"
template => "/templates/so-common-template.json"
template_overwrite => true
ssl => true
ssl_certificate_verification => false
}
}
}