Tail a log file
tail_logRetrieve the last N lines of a log file. Optionally filter by case-insensitive text to isolate relevant entries.
Instructions
Read the last N lines of a log file under the configured log root, optionally filtered to lines containing a substring (case-insensitive).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path relative to the configured log root, for example nginx/error.log | |
| lines | No | How many lines to return (default 50) | |
| contains | No | Only return lines containing this text |