AI Log Analyzer is a full-stack SecOps helper that ingests web access logs, parses them into structured events, applies rule-based detection logic, and enriches the result with a live Ollama summary or a safe fallback analysis.
.
|-- backend
| |-- app
| |-- tests
| |-- requirements.txt
| `-- README.md
|-- frontend
| |-- app
| |-- components
| |-- lib
| |-- package.json
| `-- README.md
`-- venv
Use only the repo-root venv. Do not install backend dependencies globally.
Windows PowerShell:
python -m venv venv
.\venv\Scripts\python.exe -m pip install -r backend\requirements.txtLinux or macOS:
python -m venv venv
./venv/bin/python -m pip install -r backend/requirements.txtBackend:
Copy-Item backend\.env.example backend\.envFrontend:
Copy-Item frontend\.env.local.example frontend\.env.localStore sensitive or deployment-specific values in .env and .env.local, not in committed files. The backend now requires
DATABASE_URL pointing to a reachable PostgreSQL instance.
ollama pull mistralIf ollama serve reports that port 11434 is already in use, Ollama is probably already running.
Ensure PostgreSQL is reachable at DATABASE_URL in backend/.env. Then run migrations:
cd backend
..\venv\Scripts\python.exe -m alembic upgrade headcd backend
..\venv\Scripts\python.exe -m uvicorn app.main:app --reloadWindows PowerShell:
cd frontend
npm.cmd install
npm.cmd run devOther shells:
cd frontend
npm install
npm run dev- FastAPI backend with parsing, detections, correlation, risk scoring, case management, GeoIP enrichment, and PDF export
- Next.js App Router frontend with a SOC-style investigation workflow, cases, rules, and live mode
- Local
.envsupport and Postgres-backed persistence for investigation sessions - Deployment-safe behavior when Ollama is unavailable in hosted environments
See the backend and frontend READMEs for subsystem-specific details.