Read log file
read_log_fileRetrieve log entries from system log files on Linux servers to monitor events, diagnose issues, and troubleshoot system behavior by specifying file path and line count.
Instructions
Read a specific log file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_path | Yes | Absolute path to the log file (must be in allowed list) | |
| lines | No | Number of lines to retrieve from the end. | |
| host | No | Remote host to connect to via SSH |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| unit | No | ||
| entries | Yes | ||
| lines_count | No |