🔍 Detect anomalies in massive log streams using Kafka + AI
InsightStream is an AI-driven observability platform that analyzes log streams in real time using Apache Kafka and DigitalOcean Gradient AI models.
Instead of manually searching through thousands of logs, InsightStream automatically detects anomalies, summarizes incidents, and provides operational insights through a real-time dashboard.
Real-time monitoring dashboard
- Live log stream
- AI anomaly detection
- Alert notifications
- Operational metrics
Modern systems generate millions of logs per hour.
Traditional monitoring tools rely on:
❌ manual investigation
❌ static threshold alerts
❌ delayed incident detection
InsightStream solves this by combining stream processing and AI analysis.
✔ Detect anomalies automatically
✔ Identify incident patterns
✔ Provide actionable insights
+------------------+
| Application |
| Log Producers |
+---------+--------+
|
v
+-----------+
| Kafka |
| Streams |
+-----+-----+
|
v
+--------------------+
| Spring Boot |
| Log Consumer |
+---------+----------+
|
v
+----------------------+
| DigitalOcean |
| Gradient AI Inference|
+----------+-----------+
|
v
+----------------+
| Dashboard UI |
| (Next.js) |
+----------------+
1️⃣ Producer
Applications generate logs and publish them to Kafka.
2️⃣ Kafka Stream
Kafka ensures reliable and scalable log streaming.
3️⃣ Consumer (Spring Boot)
The backend consumes logs and performs analysis.
4️⃣ AI Inference
DigitalOcean Gradient models evaluate anomalies.
5️⃣ Real-time Dashboard
Insights are streamed to the UI instantly.
Apache Kafka processes log events in real time.
- High throughput
- fault tolerant
- scalable ingestion
Logs are analyzed using DigitalOcean Gradient AI models.
The AI identifies:
- error spikes
- latency anomalies
- security threats
- resource exhaustion
When anomalies are detected:
- alerts are generated
- severity levels are assigned
- engineers are notified instantly
Real-time UI provides full system visibility.
Features:
- live log stream
- anomaly alerts
- AI summaries
- performance metrics
InsightStream dashboard provides:
✔ Live log monitoring
✔ AI anomaly alerts
✔ System metrics
✔ Scenario simulation
The dashboard provides built-in log generators so users can instantly simulate incidents and observe the detection pipeline. To demonstrate anomaly detection, the dashboard includes built-in log generators:
| Scenario | Description |
|---|---|
| 🔥 Error Spike | Sudden increase in server errors |
| 🛑 Brute Force | Repeated login failures |
| 🐢 DB Latency | Slow database queries |
| 💾 Memory Pressure | High memory usage |
These scenarios allow real-time observation of the AI detection pipeline.
InsightStream can be deployed using Docker Compose.
Services included:
- Apache Kafka
- Spring Boot backend
- Next.js dashboard
Production deployment can be extended with:
- Log collectors (Fluent Bit / Vector)
- Kafka clusters
- Reverse proxy (NGINX)
InsightStream uses structured prompts to analyze log windows.
The AI model evaluates:
- anomaly likelihood
- severity level
- incident category
- recommended actions
git clone https://github.com/HyeonbinJung/InsightStream.git
cd InsightStreamexport DO_MODEL_ACCESS_KEY=YOUR_KEYdocker compose up -d --buildhttp://localhost:3000InsightStream
│
├─ backend
│ ├─ kafka consumer
│ ├─ AI inference
│ ├─ alert engine
│
├─ dashboard
│ ├─ realtime UI
│ ├─ log visualization
│
└─ docker
├─ kafka
├─ backend
└─ dashboard- Incident timeline analysis
- Root cause detection
- Multi-service correlation
- Distributed tracing integration