Skip to main content
Glama
Fato07
by Fato07

log_analyzer_watch

Monitor log files for new entries using polling, starting from a specified position to track updates with configurable filters and output formats.

Instructions

Watch a log file for new entries since a given position. This enables polling-based log watching. First call with from_position=0 returns the current end-of-file position. Subsequent calls with the returned position get new entries added since then. Args: file_path: Path to the log file to watch from_position: File position to read from. Use 0 for initial call (returns current end position), or use the returned current_position from a previous call. max_lines: Maximum lines to read per call (1-1000, default: 100) level_filter: Filter by log levels, comma-separated (e.g., "ERROR,WARN") pattern_filter: Regex pattern to filter messages response_format: Output format - 'markdown' or 'json' Returns: New log entries since the last position, with updated position for the next call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
from_positionNo
max_linesNo
level_filterNo
pattern_filterNo
response_formatNomarkdown

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/Fato07/log-analyzer-mcp'

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