Skip to main content
GET
/
1
/
logs
/
{indexName}
curl
curl --request GET \
  --url https://query-suggestions.us.algolia.com/1/logs/ALGOLIA_INDEX_NAME \
  --header 'accept: application/json' \
  --header 'x-algolia-api-key: ALGOLIA_API_KEY' \
  --header 'x-algolia-application-id: ALGOLIA_APPLICATION_ID'
{
"timestamp": "2023-07-05T08:03:33.898076171Z",
"level": "SKIP",
"message": "skipping query \"Brooke Adams\": not enough search results, got 1, expected 5",
"contextLevel": 1
}
Required ACL: settings

Authorizations

x-algolia-application-id
string
header
required

Your Algolia application ID.

x-algolia-api-key
string
header
required

Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.

Path Parameters

indexName
string
required

Query Suggestions index name.

Example:

"ALGOLIA_INDEX_NAME"

Response

OK

timestamp
string

Date and time of the log entry, in RFC 3339 format.

Example:

"2023-07-05T08:03:33.898076171Z"

level
enum<string>

Type of log entry.

  • SKIP. A query is skipped because it doesn't match the conditions for successful inclusion. For example, when a query doesn't generate enough search results.
  • INFO. An informative log entry.
  • ERROR. The Query Suggestions process encountered an error.
Available options:
SKIP,
INFO,
ERROR
message
string

Details about this log entry.

Example:

"skipping query \"Brooke Adams\": not enough search results, got 1, expected 5"

contextLevel
integer

Level indicating the position of a suggestion in a hierarchy of records.

For example, a contextLevel of 1 indicates that this suggestion belongs to a previous suggestion with contextLevel 0.

Example:

1

I