tail_log
Retrieves recent lines from an AEM log file via Sling Log Support and optionally filters them by regex or text to help diagnose issues.
Instructions
Return the last lines of an AEM log file via the Sling Log Support tailer (/system/console/slinglog).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tail_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Regex or case-insensitive text; only matching lines are returned | |
| lines | No | Number of lines from the end of the log | |
| log_name | No | Logger appender name, e.g. /logs/error.log | /logs/error.log |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |