I have log files coming in to an ELK stack. I want to copy a field (foo) in order to perform various mutations on it, However the field (foo) isn\'t always present.
"foo" is a literal string.
[foo] is a field.
# technically anything that returns 'true', so good for numbers and basic strings: if [foo] { } # contains a value if [foo] =~ /.+/ { }