Fortinet white logo
Fortinet white logo

EMS CLI Reference

7.4.5

emscli execute clear logs system

emscli execute clear logs system

clears and/or manages system logs

Synopsis

execute clear logs system controls how frequently system logs are rotated and/or cleared from the host.

A log 'rotation' refers to the moment when logs stop being written to a particular file, and start being written to another, usually new, file.

Use the --rotate flag to force an immediate log rotation.

emscli execute clear logs system [flags]

Options

  -h, --help              help for system
      --rotate            Forces an immediate log rotation
      --set.freq string   Controls how frequently log files are to be rotated [daily|weekly]
      --set.rotate int    Controls how many times a log file can be rotated before the oldest log file is deleted [1-10] [default: 10]

See also

emscli execute clear logs system

emscli execute clear logs system

clears and/or manages system logs

Synopsis

execute clear logs system controls how frequently system logs are rotated and/or cleared from the host.

A log 'rotation' refers to the moment when logs stop being written to a particular file, and start being written to another, usually new, file.

Use the --rotate flag to force an immediate log rotation.

emscli execute clear logs system [flags]

Options

  -h, --help              help for system
      --rotate            Forces an immediate log rotation
      --set.freq string   Controls how frequently log files are to be rotated [daily|weekly]
      --set.rotate int    Controls how many times a log file can be rotated before the oldest log file is deleted [1-10] [default: 10]

See also