search_logs
Search for specific text in local application log files to quickly locate errors, debug issues, and analyze system events.
Instructions
Search for specific text in log files
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Log file to search (default: combined.log) | combined.log |
| lines | No | Number of matching lines to return (default: 10) | |
| query | Yes | Text to search for in logs |
Input Schema (JSON Schema)
{
"properties": {
"filename": {
"default": "combined.log",
"description": "Log file to search (default: combined.log)",
"type": "string"
},
"lines": {
"default": 10,
"description": "Number of matching lines to return (default: 10)",
"type": "number"
},
"query": {
"description": "Text to search for in logs",
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
}