mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-25 17:33:35 +01:00
Moved to dynamic
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
{%- if grains['role'] == 'so-eval' -%}
|
|
||||||
{%- set ES = salt['pillar.get']('master:mainip', '') -%}
|
|
||||||
{%- else %}
|
|
||||||
{%- set ES = salt['pillar.get']('node:mainip', '') -%}
|
|
||||||
{%- endif %}
|
|
||||||
# Author: Josh Brower
|
|
||||||
# Last Update: 12/28/2018
|
|
||||||
# Output to ES for osquery tagged logs
|
|
||||||
|
|
||||||
|
|
||||||
output {
|
|
||||||
if "osquery" in [tags] {
|
|
||||||
elasticsearch {
|
|
||||||
hosts => "{{ ES }}"
|
|
||||||
index => "logstash-osquery-%{+YYYY.MM.dd}"
|
|
||||||
template => "/logstash-template.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user