Loading repository data…
Loading repository data…
Shubham-Redkar / repository
AI-powered observability and incident analysis backend for storing logs, tracking production incidents, semantic debugging, and intelligent incident retrieval using FastAPI, PostgreSQL, and LangChain.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
An AI-powered observability backend for log analysis, incident tracking, and operational debugging workflows.
This project is being built incrementally using FastAPI and evolves from a structured CRUD backend into a production-style incident intelligence platform with semantic retrieval, AI-assisted debugging, and RAG-based operational analysis.
app/
├── api/
│ ├── routes/
│ └── dependencies/
├── core/
├── db/
│ ├── models/
│ └── database.py
├── middleware/
├── schemas/
├── services/
├── tests/
└── main.py
alembic/
├── versions/
└── env.py
| Method | Endpoint | Description |
|---|---|---|
| POST | /auth/register | Register a new user |
| POST | /auth/login | Authenticate user and return JWT |
| GET | /auth/me | Get current authenticated user |
| Method | Endpoint | Description |
|---|---|---|
| POST | /incidents/ | Create incident |
| GET | /incidents/ | Get all incidents |
| GET | /incidents/{incident_id} | Get incident by ID |
| PATCH | /incidents/{incident_id} | Update incident |
| DELETE | /incidents/{incident_id} | Delete incident |
| Method | Endpoint | Description |
|---|---|---|
| GET | /users/ | Get all users |
| GET | /users/{user_id} | Get user by ID |
| PATCH | /users/{user_id}/role | Update user role |
| Method | Endpoint | Description |
|---|---|---|
| GET | /audit-logs/ | Get audit logs with filters |
The platform uses Role-Based Access Control (RBAC).
| Role | Permissions |
|---|---|
| VIEWER | Read incidents |
| ANALYST | Read, create, and update incidents |
| ADMIN | Full access including deletion and user management |
| Endpoint | VIEWER | ANALYST | ADMIN |
|---|---|---|---|
GET /incidents | ✅ | ✅ | ✅ |
GET /incidents/{id} | ✅ | ✅ | ✅ |
POST /incidents | ❌ | ✅ | ✅ |
PATCH /incidents/{id} | ❌ | ✅ | ✅ |
DELETE /incidents/{id} | ❌ | ❌ | ✅ |
GET /audit-logs | ❌ | ✅ | ✅ |
GET /users | ❌ | ❌ | ✅ |
GET /users/{id} | ❌ | ❌ | ✅ |
PATCH /users/{id}/role | ❌ | ❌ | ✅ |
Supports:
GET /incidents?severity=high
GET /incidents?status=open&environment=production
GET /incidents?tag=database
GET /incidents?search=timeout
GET /incidents?limit=10&offset=0
GET /incidents?sort_by=created_at&order=desc
Supports:
GET /audit-logs?action=INCIDENT_UPDATED
GET /audit-logs?entity_type=USER
GET /audit-logs?entity_id=<entity_uuid>
GET /audit-logs?user_id=<user_uuid>
GET /audit-logs?limit=10&offset=0
git clone <repo-url>
cd log-analysis-platform
python -m venv .venv
source .venv/bin/activate
.venv\Scripts\activate
pip install -r requirements.txt
alembic upgrade head
uvicorn app.main:app --reload
pytest -v
Swagger UI:
http://127.0.0.1:8000/docs
This project is focused on learning and implementing: