Анализ логов Docker контейнера для диагностики проблем и мониторинга здоровья системы. Использовать при отладке ошибок, отслеживании процессов воркеров, исследовании проблем API или мониторинге поведения системы после тестов.
Detected risks:
The 'log-analyzer' skill is designed to help diagnose issues and monitor system health by analyzing logs within Docker containers. This tool is particularly useful for debugging errors, tracking worker processes, investigating API issues, and monitoring system behavior after tests or during production. By utilizing intelligent log searching techniques, the skill filters out irrelevant entries, correlates logs across multiple files, and provides insights to pinpoint root causes of issues. It works with both host-mounted logs and Docker's exec command for flexibility and speed.
You can access logs via two methods: using a host path (recommended for large log files and complex searches) or using Docker exec (for process monitoring and real-time monitoring).
The skill uses Bash, Read, Grep, and Glob tools for log analysis, with Grep being particularly useful for searching log patterns.
Yes, real-time monitoring is possible by using the 'docker exec' command with the 'tail -f' option to continuously view log entries as they are added.
Yes, based on the issue type, you should target specific logs, such as system messages for API or worker issues, or Asterisk and security logs for call-related problems.
For diagnosing API issues, you should focus on logs like 'WorkerApiCommands', PHP error logs, and Nginx logs.
Quick Setup:
.claude/skills/Repository
mikopbx/Core