Skip to main content
Glama

read_log_file

Retrieve 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

TableJSON Schema
NameRequiredDescriptionDefault
log_pathYesAbsolute path to the log file (must be in allowed list)
linesNoNumber of lines to retrieve from the end.
hostNoRemote host to connect to via SSH

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rhel-lightspeed/linux-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server