You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our testing doc.containsKey('@timestamp') doesn't actually work here as the elasticsearch date field defaults to 0, sort of. After bouncing the problem around with a few other engineers we came up with a solution that does:
doc['@timestamp'].value will return 0 on missing fields due to null_value casting, however we can abuse the fact that all fields are multi-valued and check the length of the array instead doc['@timestamp'].values.size() will return 0 for missing fields. Fix incoming.
eg:
Think script_fields are to blame, maybe should use containsKey instead?
The text was updated successfully, but these errors were encountered: