Using the command line interface (CLI) : diagnose : diagnose system export fd_log
 
diagnose system export fd_log
Allows you to export debug log files to an FTP server
Syntax
diagnose system export fd_log <ftp server> <user> <password> [directory] [filename]
where:
Variables
Description
<ftp server>
IP address or hostname of FTP server.
<username>
User name of account that logs on to the FTP server.
<password>
Password of account that logs on to the FTP server.
[directory]
Location on FTP server where you want the diagnostic file to be placed.
[filename]
Name of the zip file that contains several log files that will be put on the FTP server. If you don't specify a filename, you will get a default file called fortidb.zip.
Example
diagnose system export fd_log <your_ftp_server> <your_ftp_username> <your_ftp_password> . myDiagnose.zip
See also
diagnose log show|tail|remove