mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
28 lines
669 B
Plaintext
28 lines
669 B
Plaintext
{%- if grains['role'] == 'so-eval' -%}
|
|
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
{%- else %}
|
|
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
|
|
{%- 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 {
|
|
if "import" in [tags] and "test_data" not in [tags] {
|
|
# stdout { codec => rubydebug }
|
|
elasticsearch {
|
|
hosts => "{{ ES }}"
|
|
index => "logstash-import-%{+YYYY.MM.dd}"
|
|
template_name => "logstash-*"
|
|
template => "/logstash-template.json"
|
|
template_overwrite => true
|
|
}
|
|
}
|
|
}
|