mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #358 from Security-Onion-Solutions/fix/strelka_config
Fix/strelka config
This commit is contained in:
@@ -104,3 +104,4 @@
|
|||||||
/usr/share/logstash/pipeline.dynamic/9998_output_test_data.conf
|
/usr/share/logstash/pipeline.dynamic/9998_output_test_data.conf
|
||||||
/usr/share/logstash/pipeline.dynamic/7100_osquery_wel.conf
|
/usr/share/logstash/pipeline.dynamic/7100_osquery_wel.conf
|
||||||
/usr/share/logstash/pipeline.dynamic/9100_output_osquery.conf
|
/usr/share/logstash/pipeline.dynamic/9100_output_osquery.conf
|
||||||
|
/usr/share/logstash/pipeline.dynamic/9700_output_strelka.conf
|
||||||
|
|||||||
@@ -111,3 +111,4 @@
|
|||||||
#/usr/share/logstash/pipeline.dynamic/9998_output_test_data.conf
|
#/usr/share/logstash/pipeline.dynamic/9998_output_test_data.conf
|
||||||
/usr/share/logstash/pipeline.dynamic/7100_osquery_wel.conf
|
/usr/share/logstash/pipeline.dynamic/7100_osquery_wel.conf
|
||||||
/usr/share/logstash/pipeline.dynamic/9100_output_osquery.conf
|
/usr/share/logstash/pipeline.dynamic/9100_output_osquery.conf
|
||||||
|
/usr/share/logstash/pipeline.dynamic/9700_output_strelka.conf
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{%- if grains['role'] == 'so-eval' -%}
|
||||||
|
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
||||||
|
{%- else %}
|
||||||
|
{%- set ES = salt['pillar.get']('node: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] =~ "strelka" {
|
||||||
|
mutate {
|
||||||
|
##add_tag => [ "conf_file_9000"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
output {
|
||||||
|
if [event_type] =~ "strelka" {
|
||||||
|
elasticsearch {
|
||||||
|
hosts => "{{ ES }}"
|
||||||
|
index => "logstash-strelka-%{+YYYY.MM.dd}"
|
||||||
|
template_name => "logstash-strelka"
|
||||||
|
template => "/logstash-strelka-template.json"
|
||||||
|
template_overwrite => true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{%- if grains['role'] == 'so-eval' -%}
|
||||||
|
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
||||||
|
{%- else %}
|
||||||
|
{%- set ES = salt['pillar.get']('node: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] =~ "strelka" {
|
||||||
|
mutate {
|
||||||
|
##add_tag => [ "conf_file_9000"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
output {
|
||||||
|
if [event_type] =~ "strelka" {
|
||||||
|
elasticsearch {
|
||||||
|
hosts => "{{ ES }}"
|
||||||
|
index => "logstash-strelka-%{+YYYY.MM.dd}"
|
||||||
|
template_name => "logstash-strelka"
|
||||||
|
template => "/logstash-strelka-template.json"
|
||||||
|
template_overwrite => true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
24
salt/logstash/etc/logstash-strelka-template.json
Normal file
24
salt/logstash/etc/logstash-strelka-template.json
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"index_patterns": ["logstash-strelka-*"],
|
||||||
|
"version":50001,
|
||||||
|
"order" : 0,
|
||||||
|
"settings":{
|
||||||
|
"number_of_replicas":0,
|
||||||
|
"number_of_shards":1,
|
||||||
|
"index.refresh_interval":"30s"
|
||||||
|
},
|
||||||
|
"mappings":{
|
||||||
|
"doc":{
|
||||||
|
"dynamic": false,
|
||||||
|
"date_detection": false,
|
||||||
|
"properties":{
|
||||||
|
"@timestamp":{
|
||||||
|
"type":"date"
|
||||||
|
},
|
||||||
|
"@version":{
|
||||||
|
"type":"keyword"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -227,6 +227,7 @@ so-logstash:
|
|||||||
- /opt/so/conf/logstash/etc/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
|
- /opt/so/conf/logstash/etc/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
|
||||||
- /opt/so/conf/logstash/etc/logstash-template.json:/logstash-template.json:ro
|
- /opt/so/conf/logstash/etc/logstash-template.json:/logstash-template.json:ro
|
||||||
- /opt/so/conf/logstash/etc/logstash-ossec-template.json:/logstash-ossec-template.json:ro
|
- /opt/so/conf/logstash/etc/logstash-ossec-template.json:/logstash-ossec-template.json:ro
|
||||||
|
- /opt/so/conf/logstash/etc/logstash-strelka-template.json:/logstash-strelka-template.json:ro
|
||||||
- /opt/so/conf/logstash/etc/beats-template.json:/beats-template.json:ro
|
- /opt/so/conf/logstash/etc/beats-template.json:/beats-template.json:ro
|
||||||
- /opt/so/conf/logstash/etc/pipelines.yml:/usr/share/logstash/config/pipelines.yml
|
- /opt/so/conf/logstash/etc/pipelines.yml:/usr/share/logstash/config/pipelines.yml
|
||||||
- /opt/so/conf/logstash/pipelines:/usr/share/logstash/pipelines:ro
|
- /opt/so/conf/logstash/pipelines:/usr/share/logstash/pipelines:ro
|
||||||
|
|||||||
Reference in New Issue
Block a user