Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Behavior Analyzer

A lightweight log analysis engine that processes user activity and detects behavioral patterns based on request frequency, sensitive endpoints, and access patterns.

2026-04-16.11-35-23.mp4

Features

  • O(n) log processing
  • Per-user behavior tracking
  • Endpoint frequency analysis
  • Time-based request analysis
  • Suspicion scoring system (WIP)

Test

to test the API go to this url: https://api-log-kappa.vercel.app/docs

Example Input:

{
    "timestamp": { "value": "2026-04-15T15:25:38.610Z" },
    "ip": { "value": "192.168.1.72" },
    "endpoint": { "value": "/admin" },
    "status": { "value": 200 },
    "user_id": { "value": "38402370589435463" }
  },

Tree

├── app.py
├── DOCS.md
├── README.md
└── src
    ├── controllers
    ├── __init__.py
    ├── models
    │   ├── api_models
    │   │   ├── endpoint.py
    │   │   ├── __init__.py
    │   │   ├── ip.py
    │   │   ├── log_base.py
    │   │   ├── statuscode.py
    │   │   ├── timestamp.py
    │   │   └── userid.py
    │   ├── domain
    │   │   ├── log.py
    │   │   └── user.py
    │   └── __init__.py
    ├── routes
    │   ├── __init__.py
    │   └── routes.py
    └── services
        └── analize_logs.py

About

An application built with FASTAPI to analyze JSON logs to determine the most suspicious logs and generate a score for each user.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages