Algolia icon

Algolia

Use Algolia in your n8n workflows

Advanced → Retrieve log entries

AI-generated

Overview

This node operation retrieves log entries from Algolia's advanced logging system. It allows users to fetch recent log entries with options to specify the offset (starting point), the number of entries to retrieve (length), the index name to filter logs for a specific index, and the type of log entries (all, query, build, or error). This is useful for monitoring and debugging Algolia search operations by analyzing logs related to queries, builds, or errors.

Use Case Examples

  1. A user wants to monitor the last 50 log entries related to query operations on a specific index to troubleshoot search issues.
  2. A developer retrieves the most recent 100 log entries of all types to audit the search activity and system behavior.

Properties

Name Meaning
Offset First log entry to retrieve. The most recent entries are listed first.
Length Maximum number of entries to retrieve.
Index Name Index for which to retrieve log entries. By default, log entries are retrieved for all indices.
Type Type of log entries to retrieve. By default, all log entries are retrieved.

Output

JSON

  • logs - Array of retrieved log entries with details such as timestamp, type, and message.

Dependencies

  • An API key credential with 'logs' ACL permission for authentication to Algolia API.

Troubleshooting

  • Ensure the API key used has the 'logs' ACL permission; otherwise, the request will be denied.
  • If no logs are returned, verify the offset and length parameters to ensure they are within valid ranges.
  • Check the index name and type filters to confirm they match existing logs.
  • Network or SSL issues might cause request failures; use the 'Ignore SSL Issues' option if necessary.

Links

Discussion