How 5406harish/log-file-anomaly-explainer-tool works
Log File Anomaly Explainer accepts log files through a CLI and a Streamlit dashboard. Users can scan for severity-ranked anomalies, request LLM explanations with surrounding context, or run an agent investigation that dispatches log-analysis tools; results can be rendered as console, JSON, or Markdown output. The repository contains separate CLI/Gemini and web-app/Groq implementations of the backend. The graph preserves both. The README documents product capabilities; some web-app and CLI wiring is only partially sampled, so unsupported internal links are omitted.
Main entry points: app.py Streamlit Dashboard · src/cli.py CLI Commands · agent.py Web Agent Loop · src/cli.py Web CLI Commands
Components 16
CLI Backend
- Anomaly Parser
Project/src/parser.py - Investigation Tools
Project/src/tools.py - Agent Loop
Project/src/agent.py - Gemini Client
Project/src/llm_client.py
Web Backend
- Web Anomaly Parser
WEB APP/Project/src/parser.py - Web Investigation Tools
WEB APP/Project/src/tools.py - Web Agent Loop
WEB APP/Project/src/agent.py - Groq Client
WEB APP/Project/src/llm_client.py
User Interfaces
- CLI Commands
Project/src/cli.py - Streamlit Dashboard
WEB APP/Project/app.py - Web CLI Commands
WEB APP/Project/src/cli.py
External Services
- Google Gemini
- Groq Cloud
Other components
- CLI User
- Log File
- Dashboard User
Connections 21
- CLI User → CLI Commands: runs commands
README.md - CLI Commands → Anomaly Parser: invokes parsing
Project/src/cli.py - CLI Commands → Gemini Client: requests explanation
Project/src/cli.py - CLI Commands → Agent Loop: starts investigation
Project/src/cli.py - Anomaly Parser → Log File: reads
Project/src/parser.py - Investigation Tools → Anomaly Parser: uses parser
Project/src/tools.py - Agent Loop → Investigation Tools: dispatches tools
Project/src/agent.py - Agent Loop → Google Gemini: requests tool calls
Project/src/agent.py - Gemini Client → Google Gemini: requests analysis
Project/src/llm_client.py - Dashboard User → Streamlit Dashboard: uses dashboard
WEB APP/Project/app.py - Streamlit Dashboard → Web Anomaly Parser: uses backend
WEB APP/Project/app.py - Streamlit Dashboard → Groq Client: uses backend
WEB APP/Project/app.py - Streamlit Dashboard → Web Agent Loop: uses backend
WEB APP/Project/app.py - Streamlit Dashboard → Web Investigation Tools: uses backend
- Web CLI Commands → Web Anomaly Parser: invokes parsing
WEB APP/Project/src/cli.py - Web CLI Commands → Groq Client: requests explanation
WEB APP/Project/src/cli.py - Web CLI Commands → Web Agent Loop: starts investigation
WEB APP/Project/src/cli.py - Web Investigation Tools → Web Anomaly Parser: uses parser
WEB APP/Project/src/tools.py - Web Agent Loop → Web Investigation Tools: dispatches tools
WEB APP/Project/src/agent.py - Web Agent Loop → Groq Cloud: requests tool calls
WEB APP/Project/src/agent.py - Groq Client → Groq Cloud: requests analysis
WEB APP/Project/src/llm_client.py