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.
To check if field foo exists:
1) For numeric type fields use:
if ([foo]) { ... }
2) For types other than numeric like boolean, string use:
if ("" in [foo]) { ... }