How safaebiz/log-analysis-tool works
This is a command-line defensive log analyzer. An analyst supplies an auth or web access log; the CLI selects its type, parsing converts lines into structured events, and detection applies signature and behavioral rules before severity ranking. The CLI can filter findings and send a formatted report to the console or an optional file. The README documents the supported attack categories; the graph separates auth and web detection stages, though both are implemented in the same detector module. Only sampled source relationships are shown.
Main entry points: cli.py CLI workflow · rules.py Detection rules · detector.py Auth detection · parsers.py Log parsing
Components 8
Input & orchestration
- CLI workflow
loganalyzer/cli.py - Log parsing
loganalyzer/parsers.py
Threat analysis
- Auth detection
loganalyzer/detector.py - Web detection
loganalyzer/detector.py - Detection rules
loganalyzer/rules.py
Reporting
- Report formatting
loganalyzer/report.py - Report file
Other components
- Analyst
Connections 10
- Analyst → CLI workflow: runs analysis
README.md - CLI workflow → Log parsing: parses log
loganalyzer/cli.py - CLI workflow → Auth detection: analyzes auth
loganalyzer/cli.py - CLI workflow → Web detection: analyzes access
loganalyzer/cli.py - Auth detection → Detection rules: uses thresholds
loganalyzer/detector.py - Web detection → Detection rules: matches signatures
loganalyzer/detector.py - CLI workflow → Detection rules: filters severity
loganalyzer/cli.py - CLI workflow → Report formatting: renders findings
loganalyzer/cli.py - CLI workflow → Analyst: prints report
loganalyzer/cli.py - CLI workflow → Report file: writes report
loganalyzer/cli.py