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

Filter logs from FortiAnalyzer

We're sending all logs from FAZ running 7.4.6 to an external log collector, but we want to not send some traffic, such as NetFlow over tcp port 2055. Under Systems Settings > Advanced, there is a Log Forwarding tab where we've defined where the messages are being forwarded to, and within this area, there is a section called "Log Forwarding Filters." I've been looking into the "Enable Exclusions" section, where it's possible to select a field called "Destination Port (dstport)," but it doesn't appear to be possible that the actual port number can be defined. Can this be done? If so, can anyone offer guidance for accomplishing this? Thank you.

3 REPLIES 3
Jean-Philippe_P
Moderator
Moderator

Hello albaker1, 

 

Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible. 

 

Thanks, 

Jean-Philippe - Fortinet Community Team
Jean-Philippe_P
Moderator
Moderator

Hello,

 

We are still looking for an answer to your question.

 

We will come back to you ASAP.

 

Thanks,

Jean-Philippe - Fortinet Community Team
Jean-Philippe_P
Moderator
Moderator

Hello albaker1,

 

I found this solution. Can you tell me if it helps, please?

 

To exclude logs based on a specific destination port, such as TCP port 2055, you can configure log forwarding filters on FortiAnalyzer. Here’s how you can do it:

 

  1. Access Log Forwarding Filters: Navigate to the System Settings > Advanced > Log Forwarding tab.

  2. Enable Exclusions: In the Log Forwarding Filters section, enable the exclusions option.

  3. Configure Log Filters:
    - Add a new log filter.
    - Set the Log Field to Destination Port (dstport).
    - Use the Match Condition to specify the port you want to exclude. For example, you can use a condition like `!dstport=2055` to exclude logs with destination port 2055.

  4. Apply the Configuration: Save the changes to apply the filter settings.

This configuration will ensure that logs with the specified destination port are not forwarded to the external log collector.

Jean-Philippe - Fortinet Community Team
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors