This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Generic strip text from syslog messages (Strip Client-ID)

Example 1: Strip Client-ID header from syslog message

Original syslog message:

KiwiClientID=XXXXXXX Jan 4 19:37:17 Firewall src="192.168.10.10:4150" dst="66.100.69.118:80" msg="66.100.69.118 (Policy)" ...

Overloaded syslog message (stripped):

Jan 4 19:37:17 Firewall src="192.168.10.10:4150" dst="66.100.69.118:80" msg="66.100.69.118 (Policy)" ...

Function Main()
    'text to strip from message:
    strip = "KiwiClientID=XXXXXXX"

    '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