Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
luca1994
New Contributor III

Fortigate - forwrding specific type of logs

Hello team,

 

Without FortiAnalyzer, can only specific types of logs be forwarded to a syslog server on the Fortigate firewall?

 

Thanks for the support

BR

1 Solution
AEK
SuperUser
SuperUser

Hi Luca

Sure you can.

config log syslogd filter
    Description: Filters for remote system server.
    set anomaly [enable|disable]
    set forward-traffic [enable|disable]
    config free-style
        Description: Free style filters.
        edit <id>
            set category [traffic|event|...]
            set filter {string}
            set filter-type [include|exclude]
        next
    end
    set gtp [enable|disable]
    set local-traffic [enable|disable]
    set multicast-traffic [enable|disable]
    set severity [emergency|alert|...]
    set sniffer-traffic [enable|disable]
    set voip [enable|disable]
    set ztna-traffic [enable|disable]
end

 

Ref:  https://docs.fortinet.com/document/fortigate/7.2.8/cli-reference/403620/config-log-syslogd-filter

AEK

View solution in original post

AEK
3 REPLIES 3
ozkanaltas
Valued Contributor III

Hello @luca1994 ,

 

Yes, you can do this with a log filter. You can review this document about log filter. 

 

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Using-syslog-filters-on-to-send-only-speci...

 

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Using-syslog-free-style-filters/ta-p/20460...

If you have found a solution, please like and accept it to make it easily accessible to others.
NSE 4-5-6-7 OT Sec - ENT FW
If you have found a solution, please like and accept it to make it easily accessible to others.NSE 4-5-6-7 OT Sec - ENT FW
AEK
SuperUser
SuperUser

Hi Luca

Sure you can.

config log syslogd filter
    Description: Filters for remote system server.
    set anomaly [enable|disable]
    set forward-traffic [enable|disable]
    config free-style
        Description: Free style filters.
        edit <id>
            set category [traffic|event|...]
            set filter {string}
            set filter-type [include|exclude]
        next
    end
    set gtp [enable|disable]
    set local-traffic [enable|disable]
    set multicast-traffic [enable|disable]
    set severity [emergency|alert|...]
    set sniffer-traffic [enable|disable]
    set voip [enable|disable]
    set ztna-traffic [enable|disable]
end

 

Ref:  https://docs.fortinet.com/document/fortigate/7.2.8/cli-reference/403620/config-log-syslogd-filter

AEK
AEK
shaunhumpton
New Contributor

Yes, on Fortigate firewalls, you can configure specific types of logs to be forwarded to a syslog server. This can be achieved by setting up domain filters or log settings within the firewall's configuration. By specifying the desired log types or categories, you can ensure that only relevant logs are sent to the syslog server, helping to streamline log management and reduce unnecessary network traffic.

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors