If you want to search logs using our Search API, an easy way to construct your query is to use the Kibana UI.

Construct the search query

Enter the search query into the search bar on your Kibana UI.

Search

For example, you can filter by the log type: type:eventHub. This search query will retrieve all log entries that match the log type.

Search query

Select Inspect to open the inspection window.

Inspection

In the inspection window, select Request.

Request

Copy the query object

The query object of the JSON file displayed, contains the query that you can use in your request via our Search API.

JSON object