Dont overwrite metadata

This commit is contained in:
Josh Brower
2023-11-03 08:41:33 -04:00
parent 96582add5e
commit 8c7767b381
2 changed files with 5 additions and 1 deletions

View File

@@ -11,7 +11,10 @@ input {
}
}
filter {
if ![metadata] {
mutate {
rename => {"@metadata" => "metadata"}
}
}
}

View File

@@ -13,10 +13,11 @@ input {
filter {
if "fleet-lumberjack-input" in [tags] {
if ![metadata] {
mutate {
rename => {"@metadata" => "metadata"}
}
}
}