Verify that the affected log is available in the FortiGate local logs.
Identify the affected event and note its Log ID, timestamp, log type, source, destination, and other relevant fields.
Check the FortiAnalyzer logging configuration on the FortiGate:
show full-configuration log fortianalyzer filter
If VDOMs are configured, verify the configuration in the relevant VDOM:
config vdom
edit <vdom-name>
show full-configuration log fortianalyzer filter
end
Review the output for filters that use Log ID or other conditions that can exclude the affected log.
For example, a filter may contain a condition similar to:
config log fortianalyzer filter
config free-style
edit 1
set category event
set filter "(logid 0000000013)"
set filter-type exclude
next
end
end
For example: in the FortiAnalyzer log setting above, Log ID 13 represents Forward Traffic logs. If a FortiAnalyzer logging filter excludes this Log ID, the corresponding Forward Traffic logs may remain available locally on the FortiGate but will not be forwarded to FortiAnalyzer.
Compare the Log ID of the affected event with the configured filtering rules.
If the Log ID is included in a rule that excludes the log from being forwarded to FortiAnalyzer, the event can remain available in the FortiGate local logs while not being sent to FortiAnalyzer.
Remove or modify the conflicting filter according to the required logging policy.
Before making any changes, save the existing configuration:
show full-configuration log fortianalyzer filter
If the requirement is to filter a specific type of traffic rather than an entire category of logs, consider recreating the filter using a more specific traffic attribute, such as the destination port, where supported by the FortiOS version. Below are some examples:
For example:
"srcip 172.16.1.1"
"(srcip 172.16.1.1) or (dstip 172.16.1.2)"
"(srcip 172.16.1.1) and (dstip 172.16.1.2)"
"((srcip 172.16.1.1) or (dstip 172.16.1.2)) and (dstport 80 443 50-60)"
Using a Log ID to exclude logs can have a broader impact because the Log ID identifies a type of log message and may apply to multiple events.
Generate a new event matching the affected log criteria and verify that the event is now received by FortiAnalyzer.
In FortiAnalyzer, navigate to the relevant device and log category and search using the timestamp, source IP, destination IP, destination port, policy ID, or Log ID.
|