Skip to main content
Glama
Fato07
by Fato07

log_analyzer_search

Search log files for patterns with context lines, using regex or text matching with filters for log levels and output formats.

Instructions

Search for patterns in a log file with context lines. Args: file_path: Path to the log file to search pattern: Search pattern (regex or plain text) is_regex: Treat pattern as regex (default: False, plain text) case_sensitive: Case-sensitive search (default: False) context_lines: Lines of context before/after match (0-10, default: 3) max_matches: Maximum matches to return (1-200, default: 50) level_filter: Filter by log level (ERROR, WARN, INFO, DEBUG) response_format: Output format - 'markdown' or 'json' Returns: Search results with matches and surrounding context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
patternYes
is_regexNo
case_sensitiveNo
context_linesNo
max_matchesNo
level_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