query_logs
Search NewRelic logs by specific fields and values with time range filtering and wildcard pattern matching to find targeted log entries for troubleshooting and analysis.
Instructions
Search logs by field and value with optional time range. Supports wildcards (%) for pattern matching. Use this for targeted log searches based on specific criteria.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field name to search on. Example: 'message', 'service.name', 'error.class' | |
| value | Yes | Value to search for. Use % for wildcards. Example: '%timeout%' or 'my-service' | |
| limit | No | Number of logs to retrieve (default: 100, max: 2000) | |
| startTime | No | Start time in epoch milliseconds. Defaults to 1 hour ago if not specified. | |
| endTime | No | End time in epoch milliseconds. Defaults to now if not specified. | |
| additionalFields | No | Additional fields to select, comma-separated |