この記事について
FortigateのログをGUIではなく、CLIにてエクスポートする必要があったので調べてみました。しかし、この方法に関するニーズがあまり多くないのか、情報があまり見つからなかったです。そのため、備忘録として残しておきます。
これやる前に
この方法では、tftpを使用しますので、あらかじめtftpdなどの環境を用意しておきましょう。
コマンド
- execute backup memory alllogs tftp [ip address]
# execute backup memory alllog tftp 192.168.0.100
Connect to tftp server 192.168.0.100 ...
Please wait...
#
Sent log file _tlog.mlog to tftp server as mem_tlog_FGT50Exxxxxxxxxx_root_20231001_164726_mlog OK.
Connect to tftp server 192.168.0.100 ...
Please wait...
#
Sent log file _elog.mlog to tftp server as mem_elog_FGT50Exxxxxxxxxx_root_20231001_164728_mlog OK.
:
<snip>
:
olog memory log is empty.
hlog memory log is empty.