read_log_file
Retrieve recent entries from system log files on local or remote Linux servers to monitor events and diagnose issues.
Instructions
Read a specific log file (whitelist-controlled via LINUX_MCP_ALLOWED_LOG_PATHS).
Args:
log_path: Path to the log file
lines: Number of lines to retrieve from the end (default: 100)
host: Remote host to connect to via SSH (optional, executes locally if not provided)
username: SSH username for remote host (required if host is provided)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log_path | Yes | ||
| lines | No | ||
| host | No | ||
| username | No |