Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.0
Download PDF
Copy Link

log setting

Use this command to enable/disable general log settings and features.

config log setting
    set resolve-ip {enable | disable}   Enable/disable adding resolved domain names to traffic logs if possible.
    set resolve-port {enable | disable}   Enable/disable adding resolved service names to traffic logs.
    set log-user-in-upper {enable | disable}   Enable/disable logs with user-in-upper.
    set fwpolicy-implicit-log {enable | disable}   Enable/disable implicit firewall policy logging.
    set fwpolicy6-implicit-log {enable | disable}   Enable/disable implicit firewall policy6 logging.
    set log-invalid-packet {enable | disable}   Enable/disable invalid packet traffic logging.
    set local-in-allow {enable | disable}   Enable/disable local-in-allow logging.
    set local-in-deny-unicast {enable | disable}   Enable/disable local-in-deny-unicast logging.
    set local-in-deny-broadcast {enable | disable}   Enable/disable local-in-deny-broadcast logging.
    set local-out {enable | disable}   Enable/disable local-out logging.
    set daemon-log {enable | disable}   Enable/disable daemon logging.
    set neighbor-event {enable | disable}   Enable/disable neighbor event logging.
    set brief-traffic-format {enable | disable}   Enable/disable brief format traffic logging.
    set user-anonymize {enable | disable}   Enable/disable anonymizing user names in log messages.
    set fortiview-weekly-data {enable | disable}   Enable/disable FortiView weekly data.
    set expolicy-implicit-log {enable | disable}   Enable/disable explicit proxy firewall implicit policy logging.
    set log-policy-comment {enable | disable}   Enable/disable inserting policy comments into traffic logs.
    set log-policy-name {enable | disable}   Enable/disable inserting policy name into traffic logs.
    config custom-log-fields
        edit {field-id}
        # Custom fields to append to all log messages.
            set field-id {string}   Custom log field. size[35] - datasource(s): log.custom-field.id
        next
end

log setting

Use this command to enable/disable general log settings and features.

config log setting
    set resolve-ip {enable | disable}   Enable/disable adding resolved domain names to traffic logs if possible.
    set resolve-port {enable | disable}   Enable/disable adding resolved service names to traffic logs.
    set log-user-in-upper {enable | disable}   Enable/disable logs with user-in-upper.
    set fwpolicy-implicit-log {enable | disable}   Enable/disable implicit firewall policy logging.
    set fwpolicy6-implicit-log {enable | disable}   Enable/disable implicit firewall policy6 logging.
    set log-invalid-packet {enable | disable}   Enable/disable invalid packet traffic logging.
    set local-in-allow {enable | disable}   Enable/disable local-in-allow logging.
    set local-in-deny-unicast {enable | disable}   Enable/disable local-in-deny-unicast logging.
    set local-in-deny-broadcast {enable | disable}   Enable/disable local-in-deny-broadcast logging.
    set local-out {enable | disable}   Enable/disable local-out logging.
    set daemon-log {enable | disable}   Enable/disable daemon logging.
    set neighbor-event {enable | disable}   Enable/disable neighbor event logging.
    set brief-traffic-format {enable | disable}   Enable/disable brief format traffic logging.
    set user-anonymize {enable | disable}   Enable/disable anonymizing user names in log messages.
    set fortiview-weekly-data {enable | disable}   Enable/disable FortiView weekly data.
    set expolicy-implicit-log {enable | disable}   Enable/disable explicit proxy firewall implicit policy logging.
    set log-policy-comment {enable | disable}   Enable/disable inserting policy comments into traffic logs.
    set log-policy-name {enable | disable}   Enable/disable inserting policy name into traffic logs.
    config custom-log-fields
        edit {field-id}
        # Custom fields to append to all log messages.
            set field-id {string}   Custom log field. size[35] - datasource(s): log.custom-field.id
        next
end