mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
elastic pipeline test
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
{%- if grains['role'] == 'so-eval' -%}
|
||||||
|
{%- set ES = salt['pillar.get']('manager:mainip', '') -%}
|
||||||
|
{%- else %}
|
||||||
|
{%- set ES = salt['pillar.get']('elasticsearch:mainip', '') -%}
|
||||||
|
{%- endif %}
|
||||||
|
output {
|
||||||
|
if [event][module] == 'elasticsearch' {
|
||||||
|
elasticsearch {
|
||||||
|
id => "elastic_logs"
|
||||||
|
pipeline => "filebeat-%{[agent][version]}-elasticsearch-%{[fileset][name]}-pipeline"
|
||||||
|
hosts => "{{ ES }}"
|
||||||
|
index => "so-grid-%{+YYYY.MM.dd}"
|
||||||
|
template_name => "so-common"
|
||||||
|
template => "/templates/so-common-template.json"
|
||||||
|
template_overwrite => true
|
||||||
|
ssl => true
|
||||||
|
ssl_certificate_verification => false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user