mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #11708 from Security-Onion-Solutions/2.4/metadatafix2
Dont overwrite metadata
This commit is contained in:
@@ -11,7 +11,10 @@ input {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
filter {
|
filter {
|
||||||
|
if ![metadata] {
|
||||||
mutate {
|
mutate {
|
||||||
rename => {"@metadata" => "metadata"}
|
rename => {"@metadata" => "metadata"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ input {
|
|||||||
|
|
||||||
|
|
||||||
filter {
|
filter {
|
||||||
if "fleet-lumberjack-input" in [tags] {
|
if ![metadata] {
|
||||||
mutate {
|
mutate {
|
||||||
rename => {"@metadata" => "metadata"}
|
rename => {"@metadata" => "metadata"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user