mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-15 13:42:48 +01:00
Logstash Module - Update logstash output scripts
This commit is contained in:
@@ -1,18 +1,18 @@
|
|||||||
{%- if grains['role'] != 'so-master' -%}
|
{%- if grains['role'] != 'so-master' -%}
|
||||||
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
|
||||||
# Author: Wes Lambert
|
# Author: Wes Lambert
|
||||||
# Last Update: 12/11/2017
|
# Last Update: 09/14/2018
|
||||||
filter {
|
filter {
|
||||||
if "beat" in [tags] {
|
if "beat" in [tags] {
|
||||||
mutate {
|
mutate {
|
||||||
##add_tag => [ "conf_file_9000"]
|
##add_tag => [ "conf_file_9500"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
output {
|
output {
|
||||||
if "beat" in [tags] {
|
if "beat" in [tags] {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => "{{ ES }}"
|
hosts => {{ ES }}
|
||||||
index => "logstash-beats-%{+YYYY.MM.dd}"
|
index => "logstash-beats-%{+YYYY.MM.dd}"
|
||||||
template_name => "logstash-beats"
|
template_name => "logstash-beats"
|
||||||
template => "/beats-template.json"
|
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