Hi, after upgrading FAZ to 5.2.0 we have a problem with an customized dataset. When running a test query we get an error.
This is the query:
SELECT srcip, msg, service, dstip, count(*) as totalnum
FROM $log
WHERE $filter AND srcip IS NOT LIKE '10%' AND (subtype='violation' or action='deny')
GROUP BY srcip, msg, dstip, service
ORDER BY totalnum DESC
Log Type is set to "traffic"
The error we get: ERROR: syntax error at or near "LIKE"
We want to report all blocked outgoing traffic from inside. The filter on "LIKE '10%' " is essential for the report.
Does anybody how to solve this in 5.2.0?
Regards, Olav
Solved! Go to Solution.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
Hi Olav,
In 5.2.0, ip has to be convert from inet to string by ipstr(). Your query will be:
SELECT ipstr(srcip) as srcip, msg, service, ipstr(dstip) as dstip, count(*) as totalnum FROM $log WHERE $filter AND ipstr(srcip) NOT LIKE '10%' AND (subtype='violation' or action='deny') GROUP BY srcip, msg, dstip, service ORDER BY totalnum DESC
Regards,
hz
Hi Olav,
In 5.2.0, ip has to be convert from inet to string by ipstr(). Your query will be:
SELECT ipstr(srcip) as srcip, msg, service, ipstr(dstip) as dstip, count(*) as totalnum FROM $log WHERE $filter AND ipstr(srcip) NOT LIKE '10%' AND (subtype='violation' or action='deny') GROUP BY srcip, msg, dstip, service ORDER BY totalnum DESC
Regards,
hz
Hi hz,
thank you for your fast answer. The problem was solved!
Greetz,
Olav
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1713 | |
1093 | |
752 | |
447 | |
231 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.