mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-12 20:22:59 +01:00
Logstash Module - Update logstash output scripts
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
{%- if grains['role'] != 'so-master' -%}
|
||||
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
|
||||
# Author: Wes Lambert
|
||||
# Last Update: 12/11/2017
|
||||
# Last Update: 09/14/2018
|
||||
filter {
|
||||
if "beat" in [tags] {
|
||||
mutate {
|
||||
##add_tag => [ "conf_file_9000"]
|
||||
##add_tag => [ "conf_file_9500"]
|
||||
}
|
||||
}
|
||||
}
|
||||
output {
|
||||
if "beat" in [tags] {
|
||||
elasticsearch {
|
||||
hosts => "{{ ES }}"
|
||||
hosts => {{ ES }}
|
||||
index => "logstash-beats-%{+YYYY.MM.dd}"
|
||||
template_name => "logstash-beats"
|
||||
template => "/beats-template.json"
|
||||
@@ -20,4 +20,3 @@ output {
|
||||
}
|
||||
}
|
||||
}
|
||||
{%- endif %}
|
||||
|
||||
26
salt/logstash/files/dynamic/9600_output_ossec.conf
Normal file
26
salt/logstash/files/dynamic/9600_output_ossec.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
{%- if grains['role'] != 'so-master' -%}
|
||||
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
|
||||
# Author: Justin Henderson
|
||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
||||
# Updated by: Doug Burks
|
||||
# Last Update: 9/19/2018
|
||||
|
||||
filter {
|
||||
if [event_type] =~ "ossec" {
|
||||
mutate {
|
||||
##add_tag => [ "conf_file_9600"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output {
|
||||
if [event_type] =~ "ossec" or "ossec" in [tags] {
|
||||
elasticsearch {
|
||||
hosts => {{ ES }}
|
||||
index => "logstash-ossec-%{+YYYY.MM.dd}"
|
||||
template_name => "logstash-ossec"
|
||||
template => "/logstash-ossec-template.json"
|
||||
template_overwrite => true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user