OptionalpagePage index of the results to return. First page is 0.
Optionalper_Number of results per page. Paging is disabled if parameter not sent. Default: 50. Max value: 100
OptionalsortField to use for sorting appended with :1 for ascending and :-1 for descending. e.g. date:-1
OptionalfieldsComma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.
Optionalinclude_Whether specified fields are to be included (true) or excluded (false)
Optionalinclude_Return results as an array when false (default). Return results inside an object that also contains a total result count when true.
OptionalsearchRetrieves logs that match the specified search criteria. This parameter can be combined with all the others in the /api/logs endpoint but is specified separately for clarity. If no fields are provided a case insensitive 'starts with' search is performed on all of the following fields: client_name, connection, user_name. Otherwise, you can specify multiple fields and specify the search using the %field%:%search%, for example: application:node user:"John@contoso.com". Values specified without quotes are matched using a case insensitive 'starts with' search. If quotes are used a case insensitve exact search is used. If multiple fields are used, the AND operator is used to join the clauses.
Example