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
When adding properties to an event, skip empty fields before trying to
do any type casting. This allows metric(int("${foo:-}")
state("${state}")) to work correctly, and skip the metric field if it is
empty, and therefore fixessyslog-ng#258.
Reported-by: Fabien Wernli
Signed-off-by: Viktor Tusa <tusavik@gmail.com>
setting the metric (and presumably other options) to
""
results in a casting error:when
${foo}
is empty, we get:The text was updated successfully, but these errors were encountered: