Repository navigation
|
Hi all, I can't get the condition to work. It seems the Key_value_equals condition only does string comparison and does not know how to deal with booleans. Any idea on how to do this ? |
Answered by
googleg
Dec 15, 2022
Replies: 2 comments
|
Ok so I was not able to have the Modify filter Condition work with boolean values. The work around I've found is to use a lua script to convert the boolean value into a string: function conv(tag, timestamp, record) |
0 replies
Answer selected by
patrick-stephens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok so I was not able to have the Modify filter Condition work with boolean values. The work around I've found is to use a lua script to convert the boolean value into a string:
function conv(tag, timestamp, record)
record["is_lat_null_string"] = string.format("%s",record["is_lat_null"])
return 2, timestamp, record
end