Fortinet black logo

CLI Reference

execute log list-type

execute log list-type

Use this command to list log files for a specified log type.

Syntax

execute log list-type {elog|tlog|alog|all}

elog

List event logs.

tlog

List traffic logs.

alog

List securty logs.

all

List logs for all types.

Example

FortiADC-VM # execute log list-type ?

<type|all> list all log file by <type>(elog|tlog|alog|all)

FortiADC-VM # execute log list-type all

1.admin.elog 31440 Tue Mar 10 10:01:36 2015

1.app.elog 30578 Tue Feb 24 08:59:09 2015

1.config.elog 23239 Tue Mar 10 13:26:06 2015

1.system.elog 2291 Tue Mar 10 13:50:08 2015

1.dns.tlog 0 Tue Dec 9 12:10:52 2014

1.fw.tlog 0 Tue Dec 9 12:10:52 2014

1.slb_http.tlog 0 Tue Dec 9 12:10:52 2014

1.slb_layer4.tlog 0 Tue Dec 9 12:10:52 2014

1.slb_radius.tlog 0 Tue Dec 9 12:10:52 2014

1.slb_tcps.tlog 0 Tue Dec 9 12:10:52 2014

1.ip_reputation.alog 0 Tue Dec 9 12:10:52 2014

1.synflood.alog 0 Tue Dec 9 12:10:52 2014

FortiADC-VM # execute log rebuild-db

You need to wait 2 minutes at least until log rebuild completes

execute log list-type

execute log list-type

Use this command to list log files for a specified log type.

Syntax

execute log list-type {elog|tlog|alog|all}

elog

List event logs.

tlog

List traffic logs.

alog

List securty logs.

all

List logs for all types.

Example

FortiADC-VM # execute log list-type ?

<type|all> list all log file by <type>(elog|tlog|alog|all)

FortiADC-VM # execute log list-type all

1.admin.elog 31440 Tue Mar 10 10:01:36 2015

1.app.elog 30578 Tue Feb 24 08:59:09 2015

1.config.elog 23239 Tue Mar 10 13:26:06 2015

1.system.elog 2291 Tue Mar 10 13:50:08 2015

1.dns.tlog 0 Tue Dec 9 12:10:52 2014

1.fw.tlog 0 Tue Dec 9 12:10:52 2014

1.slb_http.tlog 0 Tue Dec 9 12:10:52 2014

1.slb_layer4.tlog 0 Tue Dec 9 12:10:52 2014

1.slb_radius.tlog 0 Tue Dec 9 12:10:52 2014

1.slb_tcps.tlog 0 Tue Dec 9 12:10:52 2014

1.ip_reputation.alog 0 Tue Dec 9 12:10:52 2014

1.synflood.alog 0 Tue Dec 9 12:10:52 2014

FortiADC-VM # execute log rebuild-db

You need to wait 2 minutes at least until log rebuild completes