mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #975 from Security-Onion-Solutions/fix/lstemplate
Fix/lstemplate
This commit is contained in:
@@ -19,6 +19,7 @@ logstash:
|
|||||||
- so/so-beats-template.json.jinja
|
- so/so-beats-template.json.jinja
|
||||||
- so/so-common-template.json
|
- so/so-common-template.json
|
||||||
- so/so-firewall-template.json.jinja
|
- so/so-firewall-template.json.jinja
|
||||||
|
- so/so-flow-template.json.jinja
|
||||||
- so/so-ids-template.json.jinja
|
- so/so-ids-template.json.jinja
|
||||||
- so/so-import-template.json.jinja
|
- so/so-import-template.json.jinja
|
||||||
- so/so-osquery-template.json.jinja
|
- so/so-osquery-template.json.jinja
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ logstash:
|
|||||||
- so/so-beats-template.json.jinja
|
- so/so-beats-template.json.jinja
|
||||||
- so/so-common-template.json
|
- so/so-common-template.json
|
||||||
- so/so-firewall-template.json.jinja
|
- so/so-firewall-template.json.jinja
|
||||||
|
- so/so-flow-template.json.jinja
|
||||||
- so/so-ids-template.json.jinja
|
- so/so-ids-template.json.jinja
|
||||||
- so/so-import-template.json.jinja
|
- so/so-import-template.json.jinja
|
||||||
- so/so-osquery-template.json.jinja
|
- so/so-osquery-template.json.jinja
|
||||||
|
|||||||
@@ -126,6 +126,8 @@ filebeat.inputs:
|
|||||||
category: network
|
category: network
|
||||||
imported: true
|
imported: true
|
||||||
processors:
|
processors:
|
||||||
|
- add_tags:
|
||||||
|
tags: [import]
|
||||||
- dissect:
|
- dissect:
|
||||||
tokenizer: "/nsm/import/%{import.id}/zeek/logs/%{import.file}"
|
tokenizer: "/nsm/import/%{import.id}/zeek/logs/%{import.file}"
|
||||||
field: "log.file.path"
|
field: "log.file.path"
|
||||||
@@ -164,6 +166,8 @@ filebeat.inputs:
|
|||||||
category: network
|
category: network
|
||||||
imported: true
|
imported: true
|
||||||
processors:
|
processors:
|
||||||
|
- add_tags:
|
||||||
|
tags: [import]
|
||||||
- dissect:
|
- dissect:
|
||||||
tokenizer: "/nsm/import/%{import.id}/suricata/%{import.file}"
|
tokenizer: "/nsm/import/%{import.id}/suricata/%{import.file}"
|
||||||
field: "log.file.path"
|
field: "log.file.path"
|
||||||
|
|||||||
@@ -3,21 +3,8 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [module] =~ "zeek" {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9000"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
output {
|
||||||
if [module] =~ "zeek" {
|
if [module] =~ "zeek" and "import" not in [tags] {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
pipeline => "%{module}.%{dataset}"
|
pipeline => "%{module}.%{dataset}"
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
{%- if grains['role'] == 'so-eval' -%}
|
|
||||||
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
||||||
{%- else %}
|
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
||||||
{%- endif %}
|
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if "switch" in [tags] and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9001"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
|
||||||
if "switch" in [tags] and "test_data" not in [tags] {
|
|
||||||
#stdout { codec => rubydebug }
|
|
||||||
elasticsearch {
|
|
||||||
hosts => "{{ ES }}"
|
|
||||||
index => "so-switch-%{+YYYY.MM.dd}"
|
|
||||||
template => "/so-common-template.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -3,24 +3,14 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# Updated by: Doug Burks
|
|
||||||
# Last Update: 5/16/2017
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if "import" in [tags] and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9002"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
output {
|
||||||
if "import" in [tags] and "test_data" not in [tags] {
|
if "import" in [tags] {
|
||||||
# stdout { codec => rubydebug }
|
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
|
pipeline => "%{module}.%{dataset}"
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
index => "so-import-%{+YYYY.MM.dd}"
|
index => "so-import-%{+YYYY.MM.dd}"
|
||||||
template_name => "so-common"
|
template_name => "so-import"
|
||||||
template => "/so-common-template.json"
|
template => "/so-import-template.json"
|
||||||
template_overwrite => true
|
template_overwrite => true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,25 +3,14 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [event_type] == "sflow" and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9004"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
output {
|
||||||
if [event_type] == "sflow" and "test_data" not in [tags] {
|
if [event_type] == "sflow" {
|
||||||
#stdout { codec => rubydebug }
|
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
index => "so-flow-%{+YYYY.MM.dd}"
|
index => "so-flow-%{+YYYY.MM.dd}"
|
||||||
template => "/so-common-template.json"
|
template_name => "so-flow"
|
||||||
|
template => "/so-flow-template.json"
|
||||||
|
template_overwrite => true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
{%- if grains['role'] == 'so-eval' -%}
|
|
||||||
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
||||||
{%- else %}
|
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
||||||
{%- endif %}
|
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [event_type] == "dhcp" and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9026"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
|
||||||
if [event_type] == "dhcp" and "test_data" not in [tags] {
|
|
||||||
#stdout { codec => rubydebug }
|
|
||||||
elasticsearch {
|
|
||||||
hosts => "{{ ES }}"
|
|
||||||
template => "/so-common-template.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
{%- if grains['role'] == 'so-eval' -%}
|
|
||||||
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
||||||
{%- else %}
|
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
||||||
{%- endif %}
|
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [event_type] == "esxi" and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9029"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
|
||||||
if [event_type] == "esxi" and "test_data" not in [tags] {
|
|
||||||
elasticsearch {
|
|
||||||
hosts => "{{ ES }}"
|
|
||||||
template => "/so-common-template.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
{%- if grains['role'] == 'so-eval' -%}
|
|
||||||
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
||||||
{%- else %}
|
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
||||||
{%- endif %}
|
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [event_type] == "greensql" and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9030"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
|
||||||
if [event_type] == "greensql" and "test_data" not in [tags] {
|
|
||||||
elasticsearch {
|
|
||||||
hosts => "{{ ES }}"
|
|
||||||
template => "/so-common-template.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
{%- if grains['role'] == 'so-eval' -%}
|
|
||||||
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
||||||
{%- else %}
|
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
||||||
{%- endif %}
|
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [event_type] == "iis" and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9031"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
|
||||||
if [event_type] == "iis" and "test_data" not in [tags] {
|
|
||||||
#stdout { codec => rubydebug }
|
|
||||||
elasticsearch {
|
|
||||||
hosts => "{{ ES }}"
|
|
||||||
template => "/so-common-template.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
{%- if grains['role'] == 'so-eval' -%}
|
|
||||||
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
||||||
{%- else %}
|
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
||||||
{%- endif %}
|
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [event_type] == "mcafee" and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9032"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
|
||||||
if [event_type] == "mcafee" and "test_data" not in [tags] {
|
|
||||||
#stdout { codec => rubydebug }
|
|
||||||
elasticsearch {
|
|
||||||
hosts => "{{ ES }}"
|
|
||||||
template => "/so-common-template.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -3,26 +3,13 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [event_type] == "ids" and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9033"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
output {
|
||||||
if [event_type] == "ids" and "test_data" not in [tags] {
|
if [event_type] == "ids" and "import" not in [tags] {
|
||||||
#stdout { codec => rubydebug }
|
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
index => "so-ids-%{+YYYY.MM.dd}"
|
index => "so-ids-%{+YYYY.MM.dd}"
|
||||||
template_name => "so-common"
|
template_name => "so-ids"
|
||||||
template => "/so-common-template.json"
|
template => "/so-ids-template.json"
|
||||||
template_overwrite => true
|
template_overwrite => true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,22 +3,14 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
filter {
|
|
||||||
if [module] =~ "syslog" {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9000"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
output {
|
||||||
if [module] =~ "syslog" {
|
if [module] =~ "syslog" {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
pipeline => "%{module}"
|
pipeline => "%{module}"
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
index => "so-syslog-%{+YYYY.MM.dd}"
|
index => "so-syslog-%{+YYYY.MM.dd}"
|
||||||
template_name => "so-common"
|
template_name => "so-syslog"
|
||||||
template => "/so-common-template.json"
|
template => "/so-syslog-template.json"
|
||||||
template_overwrite => true
|
template_overwrite => true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,18 +3,15 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# Author: Josh Brower
|
|
||||||
# Last Update: 12/29/2018
|
|
||||||
# Output to ES for osquery tagged logs
|
|
||||||
|
|
||||||
|
|
||||||
output {
|
output {
|
||||||
if [module] =~ "osquery" {
|
if [module] =~ "osquery" {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
pipeline => "%{module}.%{dataset}"
|
pipeline => "%{module}.%{dataset}"
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
index => "so-osquery-%{+YYYY.MM.dd}"
|
index => "so-osquery-%{+YYYY.MM.dd}"
|
||||||
template => "/so-common-template.json"
|
template_name => "so-osquery"
|
||||||
|
template => "/so-osquery-template.json"
|
||||||
|
template_overwrite => true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,26 +3,13 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if "firewall" in [tags] and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9200"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
output {
|
||||||
if "firewall" in [tags] and "test_data" not in [tags] {
|
if "firewall" in [tags] {
|
||||||
# stdout { codec => rubydebug }
|
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
index => "so-firewall-%{+YYYY.MM.dd}"
|
index => "so-firewall-%{+YYYY.MM.dd}"
|
||||||
template_name => "so-common"
|
template_name => "so-firewall"
|
||||||
template => "/so-common-template.json"
|
template => "/so-firewall-template.json"
|
||||||
template_overwrite => true
|
template_overwrite => true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
{%- if grains['role'] == 'so-eval' -%}
|
|
||||||
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
||||||
{%- else %}
|
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
||||||
{%- endif %}
|
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [event_type] == "windows" and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9300"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
|
||||||
if [event_type] == "windows" and "test_data" not in [tags] {
|
|
||||||
#stdout { codec => rubydebug }
|
|
||||||
elasticsearch {
|
|
||||||
hosts => "{{ ES }}"
|
|
||||||
index => "so-windows-%{+YYYY.MM.dd}"
|
|
||||||
template => "/so-common-template.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
{%- if grains['role'] == 'so-eval' -%}
|
|
||||||
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
||||||
{%- else %}
|
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
|
||||||
{%- endif %}
|
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [event_type] == "dns" and "test_data" not in [tags] {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9301"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
|
||||||
if [event_type] == "dns" and "test_data" not in [tags] {
|
|
||||||
#stdout { codec => rubydebug }
|
|
||||||
elasticsearch {
|
|
||||||
hosts => "{{ ES }}"
|
|
||||||
index => "so-%{+YYYY.MM.dd}"
|
|
||||||
template => "/so-common-template.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -3,26 +3,14 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [module] == "suricata" {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9400"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
output {
|
||||||
if [module] =~ "suricata" {
|
if [module] =~ "suricata" and "import" not in [tags] {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
pipeline => "%{module}.%{dataset}"
|
pipeline => "%{module}.%{dataset}"
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
index => "so-ids-%{+YYYY.MM.dd}"
|
index => "so-ids-%{+YYYY.MM.dd}"
|
||||||
template_name => "so-common"
|
template_name => "so-ids"
|
||||||
template => "/so-common-template.json"
|
template => "/so-ids-template.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,15 +3,14 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
output {
|
output {
|
||||||
if "beat-ext" in [tags] {
|
if "beat-ext" in [tags] and "import" not in [tags] {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
pipeline => "beats.common"
|
pipeline => "beats.common"
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
index => "so-beats-%{+YYYY.MM.dd}"
|
index => "so-beats-%{+YYYY.MM.dd}"
|
||||||
template_name => "so-common"
|
template_name => "so-beats"
|
||||||
template => "/so-common-template.json"
|
template => "/so-beats-template.json"
|
||||||
template_overwrite => true
|
template_overwrite => true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,27 +3,14 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# 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 [module] =~ "ossec" {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9600"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
output {
|
output {
|
||||||
if [module] =~ "ossec" {
|
if [module] =~ "ossec" {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
pipeline => "%{module}.%{dataset}"
|
pipeline => "%{module}.%{dataset}"
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
index => "so-ossec-%{+YYYY.MM.dd}"
|
index => "so-ossec-%{+YYYY.MM.dd}"
|
||||||
template_name => "so-common"
|
template_name => "so-ossec"
|
||||||
template => "/so-common-template.json"
|
template => "/so-ossec-template.json"
|
||||||
template_overwrite => true
|
template_overwrite => true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,27 +3,14 @@
|
|||||||
{%- else %}
|
{%- else %}
|
||||||
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
# Author: Justin Henderson
|
|
||||||
# SANS Instructor and author of SANS SEC555: SIEM and Tactical Analytics
|
|
||||||
# Email: justin@hasecuritysolution.com
|
|
||||||
# Last Update: 12/9/2016
|
|
||||||
|
|
||||||
|
|
||||||
filter {
|
|
||||||
if [module] =~ "strelka" {
|
|
||||||
mutate {
|
|
||||||
##add_tag => [ "conf_file_9000"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
output {
|
output {
|
||||||
if [event_type] =~ "strelka" {
|
if [event_type] =~ "strelka" {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
pipeline => "%{module}.%{dataset}"
|
pipeline => "%{module}.%{dataset}"
|
||||||
hosts => "{{ ES }}"
|
hosts => "{{ ES }}"
|
||||||
index => "so-strelka-%{+YYYY.MM.dd}"
|
index => "so-strelka-%{+YYYY.MM.dd}"
|
||||||
template_name => "so-common"
|
template_name => "so-strelka"
|
||||||
template => "/so-common-template.json"
|
template => "/so-strelka-template.json"
|
||||||
template_overwrite => true
|
template_overwrite => true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{% set MASTER = salt['pillar.get']('static:masterip', '') %}
|
{% set MASTER = salt['pillar.get']('static:masterip', '') %}
|
||||||
{% set BATCH = salt['pillar.get']('logstash_settings:ls_pipeline_batch_size', 125) %}
|
{% set BATCH = salt['pillar.get']('logstash_settings:ls_pipeline_batch_size', 125) %}
|
||||||
|
|
||||||
output {
|
output {
|
||||||
redis {
|
redis {
|
||||||
host => '{{ MASTER }}'
|
host => '{{ MASTER }}'
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{%- set SHARDS = salt['pillar.get']('elasticsearch:index_settings:so-flow:shards', 1) %}
|
||||||
|
{%- set REPLICAS = salt['pillar.get']('elasticsearch:replicas', 0) %}
|
||||||
|
{%- set REFRESH = salt['pillar.get']('elasticsearch:index_settings:so-flow:refresh', '30s') %}
|
||||||
|
{
|
||||||
|
"index_patterns": ["so-flow-*"],
|
||||||
|
"version": 50001,
|
||||||
|
"order": 11,
|
||||||
|
"settings":{
|
||||||
|
"number_of_replicas":{{ REPLICAS }},
|
||||||
|
"number_of_shards":{{ SHARDS }},
|
||||||
|
"index.refresh_interval":"{{ REFRESH }}"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1026,6 +1026,11 @@ master_static() {
|
|||||||
" warm: 7"\
|
" warm: 7"\
|
||||||
" close: 30"\
|
" close: 30"\
|
||||||
" delete: 365"\
|
" delete: 365"\
|
||||||
|
" so-flow:"\
|
||||||
|
" shards: 1"\
|
||||||
|
" warm: 7"\
|
||||||
|
" close: 30"\
|
||||||
|
" delete: 365"\
|
||||||
" so-ids:"\
|
" so-ids:"\
|
||||||
" shards: 1"\
|
" shards: 1"\
|
||||||
" warm: 7"\
|
" warm: 7"\
|
||||||
|
|||||||
Reference in New Issue
Block a user