Skip to main content

Intelligent Log Root Cause Analysis — one command opens a full React dashboard.

Project description

CausaLog 🔍

Intelligent Log Root Cause Analysis — one command, instant dashboard.

Quick start

pip install causalog
python -m spacy download en_core_web_sm

causalog run                     # auto-discovers .log/.json in current directory
causalog run /var/log/app.log    # explicit file
causalog run logs/               # scan a directory

Opens an interactive React dashboard at http://localhost:8000 showing:

  • Dashboard — metric cards, system health timeline, AI insights, root cause hypotheses
  • Analysis — full paginated log stream with filtering by level/service/keyword
  • Clusters — grouped log clusters with severity, keywords, sparklines
  • Timelines — area chart of errors/anomalies over time with spike markers and debug runbooks

Options

causalog run app.log --port 9000       # custom port
causalog run app.log --no-browser      # server only, no browser popup
causalog run app.log --no-server       # terminal report only
causalog run app.log --report out.json # also save a JSON report
causalog version

How it works

Log file upload
      ↓
Preprocessing    (Pandas + Regex) — parse timestamps, levels, services
      ↓
NLP Extraction   (spaCy)          — extract keywords from messages
      ↓
Clustering       (TF-IDF+KMeans)  — group similar log entries
      ↓
Anomaly Detection(IsolationForest)— flag statistically unusual entries
      ↓
Ontology Mapping (keyword→cause)  — map to root cause categories
      ↓
RCA Engine       (rule-based)     — frequency + per-error details
      ↓
Intelligence Layer               — hypotheses, confidence scores,
                                   temporal trend analysis,
                                   actionable debug suggestions
      ↓
React Dashboard  (FastAPI + CDN)  — live, connected, no npm needed

Requirements

  • Python ≥ 3.9
  • spaCy English model: python -m spacy download en_core_web_sm

Stack

Layer Technology
Backend API FastAPI + Uvicorn
Frontend React 18 + Recharts (CDN, no npm)
ML/NLP scikit-learn, spaCy
Data Pandas, NumPy

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

causalog-1.0.0.tar.gz (49.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

causalog-1.0.0-py3-none-any.whl (48.9 kB view details)

Uploaded Python 3

File details

Details for the file causalog-1.0.0.tar.gz.

File metadata

  • Download URL: causalog-1.0.0.tar.gz
  • Upload date:
  • Size: 49.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for causalog-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b9c87fedf65b0df14ce1bab372485668a501a37b2a672ffc7c0b77f0f7a692b6
MD5 a574d6a8f7cababd4dee57ecff9e8df6
BLAKE2b-256 385629b5472877883f50e9b54c6f18e383ed6ef7aca476183406128f349bdf3e

See more details on using hashes here.

File details

Details for the file causalog-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: causalog-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 48.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for causalog-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b89b08911bda59562efe3b15e14f9acc46bb46e6adb21ee127df5b78ff4a604d
MD5 a98a1c2741133ef862b68eef60453d0f
BLAKE2b-256 980f835b474efc9906d9f4cf08dd24a80dc14aeae709f2e9489a15775d6db97e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page