Version 2

    Example 2: Strip Null characters from syslog message

    Original syslog message:

    LOCAL0.INFO: CLI: User "webui_agent" executed cmd "show webui" \00

    Overloaded syslog message (stripped):

    LOCAL0.INFO: CLI: User "webui_agent" executed cmd "show webui"

    Function Main()
        'text to strip from message:
        strip = Chr$(0)

        'get the message
        msg = Fields.VarCleanMessageText
       
        'Strip text from message
        msg = Replace(msg, strip, "")

        'Overload message text with stripped one.
        Fields.VarCleanMessageText = msg

        'Return success
        Main = "OK"
    End Function