mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Support document_id
This commit is contained in:
@@ -1,6 +1,21 @@
|
|||||||
output {
|
output {
|
||||||
if "elastic-agent" in [tags] {
|
if "elastic-agent" in [tags] {
|
||||||
if [metadata][pipeline] {
|
if [metadata][pipeline] {
|
||||||
|
if [metadata][_id] {
|
||||||
|
elasticsearch {
|
||||||
|
hosts => "{{ GLOBALS.manager }}"
|
||||||
|
ecs_compatibility => v8
|
||||||
|
data_stream => true
|
||||||
|
user => "{{ ES_USER }}"
|
||||||
|
password => "{{ ES_PASS }}"
|
||||||
|
document_id => "%{[metadata][_id]}"
|
||||||
|
pipeline => "%{[metadata][pipeline]}"
|
||||||
|
silence_errors_in_log => ["version_conflict_engine_exception"]
|
||||||
|
ssl => true
|
||||||
|
ssl_certificate_verification => false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => "{{ GLOBALS.manager }}"
|
hosts => "{{ GLOBALS.manager }}"
|
||||||
ecs_compatibility => v8
|
ecs_compatibility => v8
|
||||||
@@ -12,6 +27,7 @@ output {
|
|||||||
ssl_certificate_verification => false
|
ssl_certificate_verification => false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => "{{ GLOBALS.manager }}"
|
hosts => "{{ GLOBALS.manager }}"
|
||||||
@@ -25,4 +41,3 @@ output {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user