We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf6cf7b commit da31345Copy full SHA for da31345
docs/reference/tips-best-practices.md
@@ -60,13 +60,15 @@ filter {
60
# we use a "temporal" field with a predefined arbitrary known value that
61
# lives only in filtering stage.
62
add_field => { "[@metadata][test_field_check]" => "a null value" }
63
+ }
64
65
+filter {
66
+ mutate {
67
# we copy the field of interest into that temporal field.
68
# If the field doesn't exist, copy is not executed.
69
copy => { "test_field" => "[@metadata][test_field_check]" }
70
}
71
-
72
# now we now if testField didn't exists, our field will have
73
# the initial arbitrary value
74
if [@metadata][test_field_check] == "a null value" {
0 commit comments