Fortinet white logo
Fortinet white logo

CLI Reference

log

log

Use the following command to view log information.

log device

Use this command to view device log usage.

Syntax

diagnose log device [<device-id> | adom] [adom-name | all | *]

Variable

Description

[<device-id> | adom]

Optionally filter by device ID or ADOM.

[adom-name | all | *]

Optionally filter by ADOM name when filtering by ADOM.

log restore

Use this command to view the last log restore result or to cancel the last log restore request.

Syntax

diagnose log restore cancel

diagnose log restore status

Variable

Description

cancel

Cancel the last log restore request.

status

Show the last log restore result.

log

log

Use the following command to view log information.

log device

Use this command to view device log usage.

Syntax

diagnose log device [<device-id> | adom] [adom-name | all | *]

Variable

Description

[<device-id> | adom]

Optionally filter by device ID or ADOM.

[adom-name | all | *]

Optionally filter by ADOM name when filtering by ADOM.

log restore

Use this command to view the last log restore result or to cancel the last log restore request.

Syntax

diagnose log restore cancel

diagnose log restore status

Variable

Description

cancel

Cancel the last log restore request.

status

Show the last log restore result.