Simple Perl script to search the Faz log and receive the result in JSON
- Following external libraries
JSON
,Config::JSON
andSOAP::Lite
. For Debian that isapt install libsoap-lite-perl libconfig-json-perl
. - An account in the FortiAnalyzer with permissions to access the API and read logs.
$ FortiAnalyzer-API-searchFazLog --startDate="1970-01-01 00:00" --endDate="2017-11-06 13:10" --searchCriteria="dstip=127.0.0.1"
Johan Wassberg jocar@su.se