This page documents an earlier version of the API client. For the latest version, see Retrieve log entries.
logs
Logs are kept for up to seven days and limited to 1,000 per server.
You can’t access logs after the retention period ends.
This API method counts towards your operation quota but isn’t logged.
Examples
Parameters
The maximum number of entries to retrieve starting at the offset.
Maximum allowed value: 1,000.
Specify the first entry to retrieve (with 0 being the most recent log entry).
The maximum offset is the total number of stored logs (which can be lower than the maximum of 1,000).
Type of logs to retrieve. One of:
all: Retrieve all the logs.query: Retrieve only the queries.build: Retrieve only the build operations.error: Retrieve only the errors.
Response
Contains an object for each performed query with the
indexName, queryID, offset, and userToken.Response as JSON
This section shows the JSON response returned by the API. Each API client wraps this response in language-specific objects, so the structure may vary. To view the response, use thegetLogs method.
Don’t rely on the order of properties—JSON objects don’t preserve key order.
JSON