Skip to content

Logs Query

The logs query repository retrieves gateway log entries from Elasticsearch. It supports filtering by asset, time range, and free-text search with highlighted results.

Query Capabilities

FeatureDetails
Index patternlogs-gateway-*
Asset filteringMatches on labels.AssetName or labels.AssetId
Time rangeFilters on @timestamp (inclusive start, exclusive end)
Free-text searchQuery string search on the message field with wildcard support
HighlightingMatching terms wrapped in <mark> tags
Sort orderMost recent first (@timestamp descending)
Result limit1,000 documents

Asset Filtering

The query matches on both labels.AssetName and labels.AssetId using an OR condition. This means you can search by either the human-readable name or the internal identifier - useful when asset names have been changed but the ID remains the same.

When a search query is provided, it runs as a QueryStringQuery against the message field. Leading wildcards are supported, so searching for *timeout will match log messages ending with "timeout".

Matching terms in results are highlighted with <mark> tags for display in the UI.