Skip to main content
adem_netsys
Explorer III
August 2, 2024
Question

Arbor Networks Parser

  • August 2, 2024
  • 1 reply
  • 754 views

Hi guys,

 

We get logs from Arbor with syslog, FortiSIEM does not have a parser by default. Has anyone written or have a parser for this before?

    1 reply

    premchanderr
    Staff & Editor
    Staff & Editor
    October 4, 2024

    HI @adem_netsys ,

     

    I had earlier written a parser for syslogs from Arbor Availability Protection , but couldn't find now.

     

    Currently I can help with how you can proceed on this:

     

    - Simplify the patterns definition : 
    <patternDefinitions>
    <pattern name="gPatStrEndDigit"><![CDATA[[^\d+]*]]></pattern>
    <pattern name="gPatStrRightParen"><![CDATA[[^\)]*]]></pattern>
    <pattern name="gPatTimeHR"><![CDATA[\d{1,2}:\d{1,2}]]></pattern>
    </patternDefinitions>

     

    Now create a format recognizer: 
    <eventFormatRecognizer><![CDATA[\s+arbor-networks-aps\:]]></eventFormatRecognizer>

     

    Collect Fields from structed string:

    1) Define the format
    <collectFieldsByRegex src="$_rawmsg">
    <regex><![CDATA[^\s*<:gPatSyslogPRI><_mon:gPatMon>\s+<_day:gPatDay>\s+<_time:gPatTime>\s+<reptDevName:gPatHostName>\s+arbor-networks-aps\:<eventAction:gPatStrEndColon><_body:gPatMesgBody>]]></regex>
    </collectFieldsByRegex>

    2) Collect the key value for event attributes:

    <collectAndSetAttrByKeyValuePair sep="," src="$_msg">
    <attrKeyMap attr="actionTime" key="EPOCH:"/>
    <attrKeyMap attr="procId" key="PGID:"/>

    --------

    </collectAndSetAttrByKeyValuePair>
    <setEventAttribute attr="_formatedPolicyName">replaceStringByRegex($policyName, "\s+", "-")</setEventAttribute>

     

    Refer a sample syslog parser and the below document can help you to build detailed parser:

    https://help.fortinet.com/fsiem/7-0-3/Online-Help/HTML5_Help/Configuring_parsers.htm

     

    You can open a support ticket or contact Professional Services , where you can provide a complete raw log and they would provide suggestions, clarify doubt. 

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.