Search Logs
search_logsSearch container logs by substring to find error messages, stack traces, or any freeform text across all services or a specific container. Filter by log level and limit results.
Instructions
Full-text search across all (or a specific) container's buffered log lines.
Useful for finding specific error messages, stack trace snippets, SQL queries, or any freeform string that doesn't have a structured trace ID.
Args:
query (string): Case-insensitive substring to search for in log messages.
service_name (string, optional): Restrict search to this container. Omit to search all.
limit (number, 1-500): Max matching lines to return. Default 100.
level_filter (string[], optional): Restrict to specific log levels.
Returns: Matching log lines in chronological order with their service name, timestamp, and level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matching lines to return (default 100). | |
| query | Yes | Case-insensitive substring or simple pattern to search in log messages. | |
| level_filter | No | Restrict results to these log levels. | |
| service_name | No | Restrict search to this container/service. Omit to search all containers. |