Hi there, because date is not a valid log field from FGT, you can not search it directly, but you can use itime instead.
1. convert your desired time to epoch timestamp(please add your timezone), for example:
2017-06-11 00:00:59 -> 1497164400
2017-06-11 23:59:59 -> 1497250799
This can be done under linux or some websites
2. search for subtype=system itime<1497250799 itime>1497164400, we have to escape < by < and > by >
So the final request will be like below:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:r20="http://r200806.ws.fmg.fortinet.com/"> <soapenv:Header/> <soapenv:Body> <r20:searchFazLog> <!--Optional:--> <servicePass> <!--Optional:--> <userID>admin</userID> <!--Optional:--> <password></password> </servicePass> <!--Optional:--> <adom></adom> <!--Optional:--> <content>logs</content> <!--Optional:--> <format>rawFormat</format> <!--Optional:--> <deviceName>FGT70D3Z15002697</deviceName> <logType>event</logType> <!--Optional:--> <searchCriteria>subtype=system itime<1497250799 itime>1497164400 </searchCriteria> <maxNumMatches>20</maxNumMatches> <startIndex>1</startIndex> <checkArchive>0</checkArchive> <!--Optional:--> <compression>tar</compression> </r20:searchFazLog> </soapenv:Body> </soapenv:Envelope>
regards,
hz