Skip to main content
okhatab
Staff
Staff
Oct 16, 2024 8:51 AM UTC

Technical Tip: How to ensure FortiWeb will show matched pattern in attack logs

  • Apr 16, 2026 1:37 PM UTC
  • 0 replies
  • 449 views
  • Translate All
Description This article describes why some attack logs do not show the matched pattern in the attack logs and how to resolve the issue.
Scope FortiWeb.
Solution

By default, FortiWeb will retain the first 4 KB of data from the offending HTTP request payload that triggered the log message and will truncate the rest. So, if the matched pattern is within the truncated excess, it will not be visible.

 

Packet Adjustment feature has been introduced in version 7.4 (and newer). When enabled, it will ensure that the matched attack pattern is consistently preserved.

 

To enable the option:

  • From Web UI:


enablepacketadj.png

 

  • From CLI:

 

config log attack-log
    set adjust-packet enable
end

 

For more information on logging on FortiWeb, visit the following document: Logging

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