Skip to main content
ssan239
Explorer II
Jun 7, 2024 8:07 AM UTC
Question

Exclude logs to Syslog

Hi Team,

We are trying to use the free style and exclude the traffic from the logs. Though we configured using the below link we still see the logs in the syslog. May i know if this config is correct at all?

Configuring advanced syslog free-style fi... - Fortinet Community

 

We need to exclude complete subnet. 

 

config log syslogd filter
config free-style
   edit 1
     set category traffic
     set filter "srcip 10.0.0.0 255.255.255.0"
     set filter-type exclude
   next
end
end

7 replies

funkylicious
SuperUser
SuperUser
Jun 7, 2024 8:22 AM UTC

hi,

maybe try , set filter "srcip 10.0.0.*" or set filter "srcip 10.0.0.0 10.0.0.255"

"jack of all trades, master of none"
lemm
New Member
Jun 7, 2024 2:11 PM UTC

i also have the same problem, this is not working :(

ede_pfau
SuperUser
SuperUser
Jun 7, 2024 4:05 PM UTC

I set up


...

edit 3
   set category traffic
   set filter "srcip 192.168.234.*"
   set filter-type exclude
next


tested, and it does work. FOS v7.2.8.

lemm
New Member
Jun 7, 2024 4:25 PM UTC

cool thanks ! however what if i want /30 instead of /24 

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024