Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.6
Download PDF
Copy Link

log custom-field

Use log custom-field to create custom fields that will be included with log messages.

Note: 'id' will not appear in log messages, it is only used for database purposes.

config log custom-field
    edit {id}
    # Configure custom log fields.
        set id {string}   field ID <string>. size[35]
        set name {string}   Field name (max: 15 characters). size[15]
        set value {string}   Field value (max: 15 characters). size[15]
    next
end

Additional information

The following section is for those options that require additional explanation.

edit <id>

A table value for custom fields in log messages. Edit to create new and configure the custom fields using the following entries:

name <name>

The name of the field, which will appear in log messages.

value <value>

The content of the field, which will appear in log messages.

log custom-field

Use log custom-field to create custom fields that will be included with log messages.

Note: 'id' will not appear in log messages, it is only used for database purposes.

config log custom-field
    edit {id}
    # Configure custom log fields.
        set id {string}   field ID <string>. size[35]
        set name {string}   Field name (max: 15 characters). size[15]
        set value {string}   Field value (max: 15 characters). size[15]
    next
end

Additional information

The following section is for those options that require additional explanation.

edit <id>

A table value for custom fields in log messages. Edit to create new and configure the custom fields using the following entries:

name <name>

The name of the field, which will appear in log messages.

value <value>

The content of the field, which will appear in log messages.