A real-time backend monitoring and analytics system built using Flask, SQLite, Pandas, and Matplotlib.
This project simulates a lightweight observability platform capable of:
- collecting API logs
- monitoring system health
- analyzing backend performance
- generating live analytics
- visualizing traffic trends
Insert API logs dynamically using:
- dashboard form
- REST API
- automated traffic simulator
Interactive dashboard displaying:
- total logs
- success rate
- failure rate
- system health
- recent logs
- AI-like insights
Automatically generates:
- random API traffic
- failures
- latency spikes
- varying severities
to simulate real production systems.
Built using Pandas for:
- API usage analysis
- average response time calculation
- failure tracking
- slowest API detection
- health scoring
The system intelligently detects:
- high failure rates
- latency spikes
- unstable APIs
- high traffic conditions
Example:
⚠ High failure rate detected
⚠ Payments API is unstable
⚠ System latency is critical
Generates real-time charts using Matplotlib:
- Pie Chart → Success vs Failure
- Bar Chart → API Usage Frequency
- Line Chart → Response Time Trends
Download complete analytics reports as CSV files.
| Technology | Purpose |
|---|---|
| Python | Core backend |
| Flask | REST API framework |
| SQLite | Database |
| Pandas | Data analysis |
| Matplotlib | Data visualization |
log-analytics-system/
│
├── app.py
├── database.py
├── models.py
├── traffic_simulator.py
├── requirements.txt
│
├── routes/
│ └── logs.py
│
├── services/
│ └── analytics.py
│
├── utils/
│ └── charts.py
│
├── templates/
│ └── dashboard.html
│
├── static/
│ └── charts/
│
└── logs.db
git clone https://github.com/YOUR_USERNAME/smart-log-analytics-system.gitcd smart-log-analytics-systempip install -r requirements.txtpython app.pyhttp://127.0.0.1:5000
| Method | Endpoint | Description |
|---|---|---|
| POST | /log |
Insert logs |
| GET | /logs |
Fetch all logs |
| GET | /analytics |
Generate analytics |
| GET | /charts |
Generate charts |
| GET | /simulate |
Generate fake traffic |
| GET | /export/csv |
Download CSV report |
{
"api_name": "/payments",
"status": "failure",
"severity": "CRITICAL",
"response_time": 842
}The system computes:
- total logs
- success percentage
- failure percentage
- average response time
- most used API
- slowest API
- most failing API
- health status
Dashboard updates automatically every few seconds.
Charts dynamically regenerate based on incoming logs.
System generates human-readable insights based on analytics.
⚠ High failure rate detected
⚠ Payments API is unstable
⚠ System latency is critical
✓ System performance is stable
This project was built to understand how real-world monitoring and observability platforms work internally.
It simulates concepts used in production systems such as:
- observability
- performance monitoring
- API analytics
- backend health tracking
- traffic analysis
- Interactive charts using Chart.js
- Real-time WebSocket monitoring
- Alert notification system
- Machine learning anomaly detection
- PostgreSQL support
- Docker deployment
- User authentication
This project evolved from a simple logging system into a mini real-time observability platform capable of:
✅ collecting logs
✅ analyzing system performance
✅ generating insights
✅ visualizing backend health
✅ simulating live production traffic
✅ monitoring API behavior in real-time
Deepa M
AI/ML Developer Aspirant Passionate about building intelligent real-world applications using Machine Learning and Full Stack Development.