Fortinet white logo
Fortinet white logo

CLI Reference

config log disk setting

config log disk setting

Settings for local disk logging.

config log disk setting
    Description: Settings for local disk logging.
    set diskfull [overwrite|nolog]
    set dlp-archive-quota {integer}
    set full-final-warning-threshold {integer}
    set full-first-warning-threshold {integer}
    set full-second-warning-threshold {integer}
    set ips-archive [enable|disable]
    set log-quota {integer}
    set max-log-file-size {integer}
    set max-policy-packet-capture-size {integer}
    set maximum-log-age {integer}
    set report-quota {integer}
    set roll-day {option1}, {option2}, ...
    set roll-schedule [daily|weekly]
    set roll-time {user}
    set source-ip {ipv4-address}
    set status [enable|disable]
    set upload [enable|disable]
    set upload-delete-files [enable|disable]
    set upload-destination {option}
    set upload-ssl-conn [default|high|...]
    set uploaddir {string}
    set uploadip {ipv4-address}
    set uploadpass {password}
    set uploadport {integer}
    set uploadsched [disable|enable]
    set uploadtime {user}
    set uploadtype {option1}, {option2}, ...
    set uploaduser {string}
end

config log disk setting

Parameter

Description

Type

Size

diskfull

Action to take when disk is full. The system can overwrite the oldest log messages or stop logging when the disk is full.

option

-

Option

Description

overwrite

Overwrite the oldest logs when the log disk is full.

nolog

Stop logging when the log disk is full.

dlp-archive-quota

DLP archive quota (MB).

integer

Minimum value: 0 Maximum value: 4294967295

full-final-warning-threshold

Log full final warning threshold as a percent.

integer

Minimum value: 3 Maximum value: 100

full-first-warning-threshold

Log full first warning threshold as a percent.

integer

Minimum value: 1 Maximum value: 98

full-second-warning-threshold

Log full second warning threshold as a percent.

integer

Minimum value: 2 Maximum value: 99

ips-archive

Enable/disable IPS packet archiving to the local disk.

option

-

Option

Description

enable

Enable IPS packet archiving.

disable

Disable IPS packet archiving.

log-quota

Disk log quota (MB).

integer

Minimum value: 0 Maximum value: 4294967295

max-log-file-size

Maximum log file size before rolling.

integer

Minimum value: 1 Maximum value: 100

max-policy-packet-capture-size

Maximum size of policy sniffer in MB (0 means unlimited).

integer

Minimum value: 0 Maximum value: 4294967295

maximum-log-age

Delete log files older than (days).

integer

Minimum value: 0 Maximum value: 3650

report-quota *

Report quota (MB).

integer

Minimum value: 0 Maximum value: 4294967295

roll-day

Day of week on which to roll log file.

option

-

Option

Description

sunday

Sunday

monday

Monday

tuesday

Tuesday

wednesday

Wednesday

thursday

Thursday

friday

Friday

saturday

Saturday

roll-schedule

Frequency to check log file for rolling.

option

-

Option

Description

daily

Check the log file once a day.

weekly

Check the log file once a week.

roll-time

Time of day to roll the log file (hh:mm).

user

Not Specified

source-ip

Source IP address to use for uploading disk log files.

ipv4-address

Not Specified

status

Enable/disable local disk logging.

option

-

Option

Description

enable

Log to local disk.

disable

Do not log to local disk.

upload

Enable/disable uploading log files when they are rolled.

option

-

Option

Description

enable

Enable uploading log files when they are rolled.

disable

Disable uploading log files when they are rolled.

upload-delete-files

Delete log files after uploading.

option

-

Option

Description

enable

Delete log files after uploading.

disable

Do not delete log files after uploading.

upload-destination

The type of server to upload log files to. Only FTP is currently supported.

option

-

Option

Description

ftp-server

Upload rolled log files to an FTP server.

upload-ssl-conn

Enable/disable encrypted FTPS communication to upload log files.

option

-

Option

Description

default

FTPS with high and medium encryption algorithms.

high

FTPS with high encryption algorithms.

low

FTPS with low encryption algorithms.

disable

Disable FTPS communication.

uploaddir

The remote directory on the FTP server to upload log files to.

string

Maximum length: 63

uploadip

IP address of the FTP server to upload log files to.

ipv4-address

Not Specified

uploadpass

Password required to log into the FTP server to upload disk log files.

password

Not Specified

uploadport

TCP port to use for communicating with the FTP server.

integer

Minimum value: 0 Maximum value: 65535

uploadsched

Set the schedule for uploading log files to the FTP server.

option

-

Option

Description

disable

Upload when rolling.

enable

Scheduled upload.

uploadtime

Time of day at which log files are uploaded if uploadsched is enabled (hh:mm or hh).

user

Not Specified

uploadtype

Types of log files to upload. Separate multiple entries with a space.

option

-

Option

Description

traffic

Upload traffic log.

event

Upload event log.

virus

Upload anti-virus log.

webfilter

Upload web filter log.

IPS

Upload IPS log.

emailfilter

Upload spam filter log.

dlp-archive

Upload DLP archive.

anomaly

Upload anomaly log.

voip

Upload VoIP log.

dlp

Upload DLP log.

app-ctrl

Upload application control log.

waf

Upload web application firewall log.

dns

Upload DNS log.

ssh

Upload SSH log.

ssl

Upload SSL log.

cifs

Upload CIFS log.

file-filter

Upload file-filter log.

uploaduser

Username required to log into the FTP server to upload disk log files.

string

Maximum length: 35

* This parameter may not exist in some models.

config log disk setting

config log disk setting

Settings for local disk logging.

config log disk setting
    Description: Settings for local disk logging.
    set diskfull [overwrite|nolog]
    set dlp-archive-quota {integer}
    set full-final-warning-threshold {integer}
    set full-first-warning-threshold {integer}
    set full-second-warning-threshold {integer}
    set ips-archive [enable|disable]
    set log-quota {integer}
    set max-log-file-size {integer}
    set max-policy-packet-capture-size {integer}
    set maximum-log-age {integer}
    set report-quota {integer}
    set roll-day {option1}, {option2}, ...
    set roll-schedule [daily|weekly]
    set roll-time {user}
    set source-ip {ipv4-address}
    set status [enable|disable]
    set upload [enable|disable]
    set upload-delete-files [enable|disable]
    set upload-destination {option}
    set upload-ssl-conn [default|high|...]
    set uploaddir {string}
    set uploadip {ipv4-address}
    set uploadpass {password}
    set uploadport {integer}
    set uploadsched [disable|enable]
    set uploadtime {user}
    set uploadtype {option1}, {option2}, ...
    set uploaduser {string}
end

config log disk setting

Parameter

Description

Type

Size

diskfull

Action to take when disk is full. The system can overwrite the oldest log messages or stop logging when the disk is full.

option

-

Option

Description

overwrite

Overwrite the oldest logs when the log disk is full.

nolog

Stop logging when the log disk is full.

dlp-archive-quota

DLP archive quota (MB).

integer

Minimum value: 0 Maximum value: 4294967295

full-final-warning-threshold

Log full final warning threshold as a percent.

integer

Minimum value: 3 Maximum value: 100

full-first-warning-threshold

Log full first warning threshold as a percent.

integer

Minimum value: 1 Maximum value: 98

full-second-warning-threshold

Log full second warning threshold as a percent.

integer

Minimum value: 2 Maximum value: 99

ips-archive

Enable/disable IPS packet archiving to the local disk.

option

-

Option

Description

enable

Enable IPS packet archiving.

disable

Disable IPS packet archiving.

log-quota

Disk log quota (MB).

integer

Minimum value: 0 Maximum value: 4294967295

max-log-file-size

Maximum log file size before rolling.

integer

Minimum value: 1 Maximum value: 100

max-policy-packet-capture-size

Maximum size of policy sniffer in MB (0 means unlimited).

integer

Minimum value: 0 Maximum value: 4294967295

maximum-log-age

Delete log files older than (days).

integer

Minimum value: 0 Maximum value: 3650

report-quota *

Report quota (MB).

integer

Minimum value: 0 Maximum value: 4294967295

roll-day

Day of week on which to roll log file.

option

-

Option

Description

sunday

Sunday

monday

Monday

tuesday

Tuesday

wednesday

Wednesday

thursday

Thursday

friday

Friday

saturday

Saturday

roll-schedule

Frequency to check log file for rolling.

option

-

Option

Description

daily

Check the log file once a day.

weekly

Check the log file once a week.

roll-time

Time of day to roll the log file (hh:mm).

user

Not Specified

source-ip

Source IP address to use for uploading disk log files.

ipv4-address

Not Specified

status

Enable/disable local disk logging.

option

-

Option

Description

enable

Log to local disk.

disable

Do not log to local disk.

upload

Enable/disable uploading log files when they are rolled.

option

-

Option

Description

enable

Enable uploading log files when they are rolled.

disable

Disable uploading log files when they are rolled.

upload-delete-files

Delete log files after uploading.

option

-

Option

Description

enable

Delete log files after uploading.

disable

Do not delete log files after uploading.

upload-destination

The type of server to upload log files to. Only FTP is currently supported.

option

-

Option

Description

ftp-server

Upload rolled log files to an FTP server.

upload-ssl-conn

Enable/disable encrypted FTPS communication to upload log files.

option

-

Option

Description

default

FTPS with high and medium encryption algorithms.

high

FTPS with high encryption algorithms.

low

FTPS with low encryption algorithms.

disable

Disable FTPS communication.

uploaddir

The remote directory on the FTP server to upload log files to.

string

Maximum length: 63

uploadip

IP address of the FTP server to upload log files to.

ipv4-address

Not Specified

uploadpass

Password required to log into the FTP server to upload disk log files.

password

Not Specified

uploadport

TCP port to use for communicating with the FTP server.

integer

Minimum value: 0 Maximum value: 65535

uploadsched

Set the schedule for uploading log files to the FTP server.

option

-

Option

Description

disable

Upload when rolling.

enable

Scheduled upload.

uploadtime

Time of day at which log files are uploaded if uploadsched is enabled (hh:mm or hh).

user

Not Specified

uploadtype

Types of log files to upload. Separate multiple entries with a space.

option

-

Option

Description

traffic

Upload traffic log.

event

Upload event log.

virus

Upload anti-virus log.

webfilter

Upload web filter log.

IPS

Upload IPS log.

emailfilter

Upload spam filter log.

dlp-archive

Upload DLP archive.

anomaly

Upload anomaly log.

voip

Upload VoIP log.

dlp

Upload DLP log.

app-ctrl

Upload application control log.

waf

Upload web application firewall log.

dns

Upload DNS log.

ssh

Upload SSH log.

ssl

Upload SSL log.

cifs

Upload CIFS log.

file-filter

Upload file-filter log.

uploaduser

Username required to log into the FTP server to upload disk log files.

string

Maximum length: 35

* This parameter may not exist in some models.