Shopware icon

Shopware

Shopware

Actions778

Log Entry → Search Log Entry

AI-generated

Overview

This node performs a search operation on Log Entries within the Shopware system. It allows users to query log entries with various filters, sorting options, pagination, and other advanced search parameters. This is useful for retrieving specific log data for monitoring, debugging, or auditing purposes.

Use Case Examples

  1. Search log entries for a specific error type within a date range.
  2. Retrieve the latest 50 log entries sorted by timestamp.
  3. Filter log entries by user ID and log level.

Properties

Name Meaning
Page The page number of the search results to retrieve, used for pagination.
Limit The number of log entries to return per page in the search results.
Filter A JSON array of filters to restrict the search results based on specific criteria.
Sort A JSON array defining the sorting order of the search results.
Post Filter Filters applied after aggregations that do not affect the aggregation results.
Associations JSON object defining related entities to include in the search results.
Aggregations JSON array specifying aggregations to perform on the search results.
Grouping JSON array defining groupings over certain fields in the search results.
Fields JSON array specifying which fields should be returned in the search results.
Total Count Mode Option to determine how the total number of hits is calculated: none (disabled), exact (slow but accurate), or next-pages (fast for next page).
Ids JSON array of specific log entry IDs to search for.
Includes JSON object specifying fields to include for given entities, affecting API-level response filtering.
Request Options Settings for request behavior such as batching, SSL validation, proxy, and timeout.

Output

JSON

  • data - The array of log entries returned by the search query.
  • total - The total number of log entries matching the search criteria.
  • aggregations - Aggregated data based on the search query aggregations.

Dependencies

  • Requires Shopware API credentials for authentication.

Troubleshooting

  • Invalid JSON in filter, sort, or other JSON fields can cause request failures. Ensure JSON syntax is correct.
  • Incorrect pagination parameters (page or limit) may result in empty or incomplete results.
  • Using 'exact' total count mode can slow down the query significantly on large datasets.
  • SSL certificate issues may cause request failures unless 'Ignore SSL Issues' is enabled.

Links

Discussion