mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
Modify Logstash Elastic Agent output to accomodate for events with and without 'metadata.pipeline'
This commit is contained in:
@@ -1,14 +1,28 @@
|
|||||||
output {
|
output {
|
||||||
if "elastic-agent" in [tags] and "import" not in [tags] {
|
if "elastic-agent" in [tags] and "import" not in [tags] {
|
||||||
elasticsearch {
|
if [metadata][pipeline] {
|
||||||
hosts => "{{ GLOBALS.manager }}"
|
elasticsearch {
|
||||||
ecs_compatibility => v8
|
hosts => "{{ GLOBALS.manager }}"
|
||||||
data_stream => true
|
ecs_compatibility => v8
|
||||||
user => "{{ ES_USER }}"
|
data_stream => true
|
||||||
password => "{{ ES_PASS }}"
|
user => "{{ ES_USER }}"
|
||||||
ssl => true
|
password => "{{ ES_PASS }}"
|
||||||
ssl_certificate_verification => false
|
pipeline => "%{[metadata][pipeline]}"
|
||||||
|
ssl => true
|
||||||
|
ssl_certificate_verification => false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
elasticsearch {
|
||||||
|
hosts => "{{ GLOBALS.manager }}"
|
||||||
|
ecs_compatibility => v8
|
||||||
|
data_stream => true
|
||||||
|
user => "{{ ES_USER }}"
|
||||||
|
password => "{{ ES_PASS }}"
|
||||||
|
ssl => true
|
||||||
|
ssl_certificate_verification => false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user