Coder Social home page Coder Social logo

signinstats's Introduction

SigninStats

TODO: render the user informations more flexible. Currently only the company name is collected.

Azure AD signing logs can be sent to log analytics :)

On some tenants these logs can take up quite a bit of storage.

This projects aims at consolidating those logs at some time interval to lower the storage needed.

Admitedly these don't replace the original logs but they can give a sense of the amount and type of signins on a tenant.

Principle

Ok... bear with me there...

                                         +-----------+
                                         | Azure AD  |
                                         | User info |                    +--------------------+
                                         +-----+-----+                   -> Log Analytics      |
+---------+                                    |                        / | "simple" dashboard |
| sign-in |   +-------+   +-----------+   +----v-----+   +-----------+ /  +--------------------+
|   logs  +---> event +---> stream    +---> Azure    +---> Log       |/
| ------- |   |  hub  |   | analytics |   | function |   | Analytics |\
| ------- |   +-------+   +-----------+   +----^-----+   +-----------+ \ 
+---------/                                    |                        \ +-------------------+
                                           +---v---+                     -> Kibana            |
                                           | redis |                      | dynamic dashboard |
                                           | cache |                      +-------------------+
                                           +-------+
  1. Azure AD signin logs are configured to be exported to an event hub
  2. Stream Analytics picks up event from event hub and concatenate them per time slice (i.e. hours). Events are batched to an Azure function for enrichement.
  3. An Azure function recieves the events batch and fetches user information from Azure AD (companyname) and caches it to redis
  4. The aggregated and enriched information is sent to log analytics

Setup

TODO: complete setup instructions

Log Analytics

Azure Function

Event Hub

Stream Analytics

Sign-in Logs

signinstats's People

Contributors

cblomart avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

bartbilliet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.