search_logs
Query Elasticsearch logs using keywords or Lucene syntax within a defined time window and index pattern.
Instructions
Search logs matching keywords within a time range
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"keyword": "<keyword>",
"hoursBack": "<hoursBack>",
"index": "<index>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Elasticsearch index pattern, e.g. 'logs-*' | |
| keyword | Yes | Keyword or lucene query to search for | |
| hoursBack | Yes | Number of hours to look back |