<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

API Query Shows Empty Result for System Log Search

Administration
Okta Classic Engine
Okta Identity Engine

Overview

Searching for a particular log entry within the System Log generates a result while making the exact search via the API, which shows an empty result. 

Applies To

  • API Query
  • System Log

Cause

Searches via the API default to 7 days. The duration of time needs to be defined. 

Solution

The search would require a specified timeframe. 

  • {{url}}/api/v1/logs?since=2024-01-26T00:00:00.000Z&filter=eventType eq "<searchparameter>".
Loading
Okta Support - API Query Shows Empty Result for System Log Search