Created on
08-13-2024
12:11 AM
Edited on
08-18-2025
10:53 PM
By
Anthony_E
Description | This article describes how to add a custom field in FortiGate logs. |
Scope | FortiGate, Logs. |
Solution |
If a specific field is necessary in FortiGate logs (for example, for logs classification in the Syslog server), the custom field can be added:
config log custom-field
config log setting set custom-log-fields "CustomLog" end
All logs in FortiGate will be added with the custom field. Sample Forward Traffic logs:
Sample System Event Logs:
Logs sent to the syslog server will include this custom field.
Note: Changing log field names directly on a FortiGate or FortiGate VM is not supported, as FortiOS relies on a predefined logging structure. The field names are standardized and cannot be modified within the device. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.