Question
FortiSIEM - Barracuda Web Filter Parser
Hi,
I have created a custom parser for Barracuda WAF (BarracudaWAFParser.xml). But I have encountered an issue since the logs are "comma-separated".
ex: <131>Nov 12 10:03:30 barracuda 2021-11-12 04:33:30.083 +0000 barracuda SYS REPORTS ERRO 44703 Report not sent to john@abc.com: Auth failed: 535 5.7.8 Error: authentication failed: authentication failure
for the above log event types, I have created to parse the logs as follows,
------------------------------
Cheers,
Isuru
------------------------------
I have created a custom parser for Barracuda WAF (BarracudaWAFParser.xml). But I have encountered an issue since the logs are "comma-separated".
ex: <131>Nov 12 10:03:30 barracuda 2021-11-12 04:33:30.083 +0000 barracuda SYS REPORTS ERRO 44703 Report not sent to john@abc.com: Auth failed: 535 5.7.8 Error: authentication failed: authentication failure
for the above log event types, I have created to parse the logs as follows,
<when test="$_event = 'barracuda SYS'"> <!-- Barracuda System Log Fields --> <!-- %md : Module Name --> <!-- %ll : Log Level --> <!-- %ei : Event ID --> <!-- %ms : Message --> <setEventAttribute attr="eventType">Barracuda-WAF-System</setEventAttribute> <collectAndSetAttrByPos src="$_body" sep=" "> <attrPosMap attr="module" pos="1"/> <attrPosMap attr="logLevel" pos="2"/> <attrPosMap attr="eventId" pos="3"/> <attrPosMap attr="msg" pos="4"/> </collectAndSetAttrByPos> </when>​
The correct way to parse this log is as,
Module Name: REPORTS
Log Level: ERRO
Event ID: 44703
Message: Report not sent to john@abc.com: Auth failed: 535 5.7.8 Error: authentication failed: authentication failure
However, since the "Message" is also comma-separated, I can only retrieve the first Word (Report) of the whole message (not_parsing_correctly.png). In this type of scenario what would be the logical approach to parse the full message.
This happens to the rest of the Barracuda event types as well.
------------------------------
Cheers,
Isuru
------------------------------
