Skip to main content
Giovanna
Explorer III
Jun 27, 2025 3:29 PM UTC
Solved

Security Logs Fortigate

 

I would like to share only the most relevant security logs from FortiGate to a syslog collector, and I aim to minimize the volume of data being sent.
For example I am interested in User Activity Events, but I would like to filter them further, for example, to include only admin login events.

Is there any official Fortinet documentation that lists the subcategories or log IDs included in “User

 

fortigate.jpg

Activity Events”, describing their purpose and content?
And more importantly:
Is it possible to apply filters directly on FortiGate (e.g., using CLI) to export only specific subcategories within a log group?

Any example or reference would be greatly appreciated.

smkml
smkmlAnswer
Staff
Jun 27, 2025 7:29 PM UTC

config log syslogd filter
set filter "logid(xxx)"
end

 

Or refer below KB for comprehensive explanation or free style method.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-In-log-filter-settings-the-logic-is-AND-between/ta-p/230236

3 replies

smkml
Staff
smkmlAnswer
Staff
Jun 27, 2025 7:29 PM UTC

config log syslogd filter
set filter "logid(xxx)"
end

 

Or refer below KB for comprehensive explanation or free style method.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-In-log-filter-settings-the-logic-is-AND-between/ta-p/230236

Giovanna
GiovannaAuthor
Explorer III
Jul 3, 2025 4:07 PM UTC

Hi, is there maybe a command to use in order to not share the selected logs and share all the others, something like:

config log syslogd filter
set filter not "logid(xxx)"
end

? Many Thanks!

 

funkylicious
SuperUser
SuperUser
Jul 3, 2025 4:37 PM UTC
"jack of all trades, master of none"
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT