Fortinet white logo
Fortinet white logo

CLI Reference

index

index

Use this command to view (list) or clear logs, or to examine (show) or configure logs.

To use this command, your administrator account’s access control profile must have rw or w permission to the loggrp area. For details, see Permissions.

Syntax

diagnose index all show

diagnose index all clear

diagnose index {alog | dlog | elog | tlog} clear

diagnose index {alog | dlog | elog | tlog} list <index_int>

diagnose index {alog | dlog | elog | tlog} set <queue_int>

diagnose index {alog | dlog | elog | tlog} show

Variable Description Default

index {alog | dlog | elog | tlog}

Select which log files to view or affect:

  • alog—Attack logs.
  • dlog—Debug logs.
  • elog—Event logs.
  • tlog—Traffic logs.
No default.

list <index_int>

Enter the number of most recent logs to display. No default.

set <queue_int>

Enter the maximum length of the log before it is flushed and written to disk. The valid range is 0–32,768. No default.

Example

This example displays a list of logs processed.

diagnose index all show

Related topics

index

index

Use this command to view (list) or clear logs, or to examine (show) or configure logs.

To use this command, your administrator account’s access control profile must have rw or w permission to the loggrp area. For details, see Permissions.

Syntax

diagnose index all show

diagnose index all clear

diagnose index {alog | dlog | elog | tlog} clear

diagnose index {alog | dlog | elog | tlog} list <index_int>

diagnose index {alog | dlog | elog | tlog} set <queue_int>

diagnose index {alog | dlog | elog | tlog} show

Variable Description Default

index {alog | dlog | elog | tlog}

Select which log files to view or affect:

  • alog—Attack logs.
  • dlog—Debug logs.
  • elog—Event logs.
  • tlog—Traffic logs.
No default.

list <index_int>

Enter the number of most recent logs to display. No default.

set <queue_int>

Enter the maximum length of the log before it is flushed and written to disk. The valid range is 0–32,768. No default.

Example

This example displays a list of logs processed.

diagnose index all show

Related topics