Hi there,
I have 2 simple questions reagarding this logstash conditionals example.
I have found something like this:
...
if [fields][some_id] {
mutate {
add_field => {"some_id" => "%{[fields][some_id]}"}
}
}
...
-
Here I have a conditional but nothing it is compared too - a bit strange. Does it mean: If some_id has a key and therefore true? It would say: If the field some_id does exist, then add this field?? It does not make much sense to me. But this example does work. Would you please explain it to me.
-
This fields is it a a common field / or a fixed, existing object? Since [fields] was not defined anywhere else in that conf file.
Thank you and kind regards!