To_*type* function call with wrong format input value

in same cases we have to test if a field value in the log are legal value of a data type was supposed to before we store it and deal with it by the supposed data type. for example, a server may by accident wrong with a field with IPv6 address in signaling. so we need firstly check if the text string value for IPv6 if a well-formatted IPv6 address. but using regex is too cumbersome to validate this. and to_* function have no return parameter to tell this. any idea for easily copy with this?

In Graylog 3.0.0 it will be possible to check the type of an expression:
https://github.com/Graylog2/graylog-plugin-pipeline-processor/pull/237

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.