Skip to main content
Mohammed_Waked
New Member
February 21, 2025
Solved

filter the api request for logs

  • February 21, 2025
  • 1 reply
  • 1124 views

how can i filter the api request i want to filter the size of logs

{base_url}/api/v2/log/disk/traffic/local?vdom={vdom}&filter=policyid=={policy_id} and _metadata.timestamp>={start_time_ms} and _metadata.timestamp<={end_time_ms}&start={start}&limit={limit}

i want to take just the first 1000 logs but the request show all logs 

Best answer by funkylicious

try rows as param, &rows=1000

1 reply

funkylicious
SuperUser
SuperUser
February 21, 2025

try rows as param, &rows=1000

"jack of all trades, master of none"
Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.