375
The self-hosted, AI-powered alternative to Splunk & Datadog for log anomaly detection. Finds real incidents by meaning, explains why in plain English, groups them into incident families, watches your containers live, and alerts you Sentry-style - 100% local, $0/GB, zero setup.
docker run --rm -v "$PWD:/data" loglensai/loglens analyze --source app.log
First real insight in seconds - no account, no agent, no cloud, no bill.
Traditional log platforms hand you a score and an invoice. LogLens AI hands you answers - and runs entirely on your own box.
| LogLens AI | Splunk | Datadog | Elastic ML | |
|---|---|---|---|---|
| ๐ฐ Cost | $0 / GB | ~$150/GB/yr | ~$0.10โ1.27/GB | license |
| โฑ๏ธ Setup time | seconds | daysโweeks | hoursโdays | hours |
| ๐ Runs offline / air-gapped | โ | partial | โ | partial |
| ๐ Published, reproducible accuracy | โ F1 0.957 | โ | โ | โ |
| ๐ฌ Explains why a line is anomalous | โ | scores only | scores only | scores only |
| ๐งฉ Groups repeats into incidents | โ | partial | partial | โ |
| ๐ Live watch (docker/k8s/journald) | โ | โ | โ | partial |
| ๐จ Self-alerting in 1 line of code | โ | โ | agent | โ |
| ๐ค AI root-cause narratives | โ | paid add-on | paid | โ |
Measured on real, labeled production logs (Loghub BGL: 500,000 lines, 206,847 alerts). Fully reproducible with the built-in benchmark command - don't trust us, verify it.
| Mode | Precision | Recall | F1 | Speed | Missed alerts |
|---|---|---|---|---|---|
| โก fast | 0.901 | 1.000 | 0.948 | ~6,700 l/s | 0 |
| ๐ turbo | 0.901 | 1.000 | 0.948 | ~7,300 l/s | 0 |
| ๐ง deep (AI) | 0.917 | 1.000 | 0.957 | ~3,400 l/s | 0 |
Analyze a log file (mount the folder that holds it at /data):
docker run --rm -v "$PWD:/data" loglensai/loglens analyze --source app.log
Turbo scan + AI root-cause + shareable offline HTML report:
docker run --rm -v "$PWD:/data" \
-e LOGLENS_LLM_PROVIDER=openai -e LOGLENS_LLM_API_KEY=sk-... \
loglensai/loglens analyze --source app.log --turbo --rca --html report.html
Ask your logs a question in plain English:
docker run --rm -v "$PWD:/data" \
-e LOGLENS_LLM_PROVIDER=openai -e LOGLENS_LLM_API_KEY=sk-... \
loglensai/loglens ask "why did the payment service start timing out?" --source app.log
Everything after the image name goes straight to the CLI - explore it all with:
docker run --rm loglensai/loglens --help
Watch any container's logs and surface only the problems, the instant they happen - CRITICAL/FATAL lines appear immediately, noise is filtered out:
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
loglensai/loglens watch "docker logs -f my-api" --rca
Ctrl-C prints an incident summary card - plus an AI root-cause story with --rca. Works with kubectl logs -f and journalctl -f too.
Point LogLens at a service and get an alert - with a one-line root cause - the moment something breaks, including uncaught crashes. De-duplicated and rate-limited, so an error storm becomes one alert, not five hundred:
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-e LOGLENS_SLACK_WEBHOOK=https://hooks.slack.com/services/XXX/YYY/ZZZ \
loglensai/loglens watch "docker logs -f my-api" --rca
๐ด [my-api] CRITICAL ยท db (score 0.95)
database connection refused during checkout
โณ likely cause: a dependency is down or refusing connections (seen in db)
Channel & AI environment variables:
# Alerts (configure any/all)
LOGLENS_SLACK_WEBHOOK
LOGLENS_TEAMS_WEBHOOK
LOGLENS_EMAIL_SMTP_HOST / _SMTP_PORT / _USER / _PASSWORD / _TO
# Optional LLM - enriches root-cause (BYO key; only grouped summaries sent, never full logs)
LOGLENS_LLM_PROVIDER openai | azure | groq
LOGLENS_LLM_MODEL
LOGLENS_LLM_API_KEY
| Tag | Contents | Best for |
|---|---|---|
latest, 0.3, 0.3.1 | fast + turbo detection, live watch, alerts, SDK, ask, RCA, HTML reports | most users |
deep | everything above + neural (transformer) semantic mode for best precision | highest accuracy |
Every image is multi-architecture - linux/amd64 and linux/arm64 (Apple Silicon, AWS Graviton, Raspberry Pi).
docker run --rm -v "$PWD:/data" loglensai/loglens:deep analyze --source app.log --deep
services:
watch:
image: loglensai/loglens:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./logs:/data
env_file: [ .env ] # Slack/Teams/Email + optional LLM key
command: ["watch", "docker logs -f my-api", "--rca"]
restart: unless-stopped
fast, throughput-tuned turbo, and transformer-based deep.รN count.analyze(), LiveDetector, drop-in logging handler, .rca() / .ask() / .save_html()./data volume for inputs and cached models; stateless and reproducible.Website: https://loglensai.comโ ยท Docs: https://loglensai.com/docsโ ยท PyPI: https://pypi.org/project/loglensai/โ ยท Source: https://github.com/ParasRajput810/LogLens-AIโ
log anomaly detection ยท AI log analysis ยท self-hosted log monitoring ยท Splunk alternative ยท Datadog alternative ยท open-source observability ยท root cause analysis ยท SRE / DevOps tooling ยท container log monitoring ยท Kubernetes log analysis ยท Sentry for logs ยท air-gapped log analytics ยท incident detection ยท MIT licensed
โญ If LogLens AI saves you a 2 a.m. page, star the repo and share the pull.
docker pull loglensai/loglens ยท MIT ยท Built for engineers, by engineers.
Content type
Image
Digest
sha256:2541dbfa1โฆ
Size
204.4 MB
Last updated
2 months ago
docker pull loglensai/loglens