Giter VIP home page Giter VIP logo

winnie's Introduction

Winnie

oclif License

Winnie

Winnie is the result of the Datadog CLI assignment for consuming an actively written-to CLF HTTP access log, implemented by Alex Arvanitidis. Its name was inspired by Winnie the pooh looking into the honey pot, as this program is looking into the access logs of a webserver.

Prerequisites

node >= 10

npm

Installation

$ npm install
installs all dependencies
$ npm install -g
to create the command `winnielog` in your local bin

Usage

Run the --help command to see all the available arguments

$ winnielog --help
USAGE
$ winnielog --version
winnielog/1.0.0 darwin-x64 node-v10.15.0
...

Sample output of command

$ winnielog
===================================================
[Sat Jan 02 2021 18:50:33 GMT+0200] current stats report for the past 10s:
Hits by request method: 
┌────────┬──────┐
│ Method │ Hits │
├────────┼──────┤
│ PUT    │ 152  │
├────────┼──────┤
│ POST   │ 141  │
├────────┼──────┤
│ HEAD   │ 149  │
├────────┼──────┤
│ DELETE │ 149  │
├────────┼──────┤
│ PATCH  │ 134  │
├────────┼──────┤
│ GET    │ 129  │
└────────┴──────┘
Top 10 sections of the web site with the most hits:
┌────┬──────────────┬──────┐
│ #  │ Section      │ Hits │
├────┼──────────────┼──────┤
│ 1  │ e-business   │ 14   │
├────┼──────────────┼──────┤
│ 2  │ applications │ 12   │
├────┼──────────────┼──────┤
│ 3  │ experiences  │ 11   │
├────┼──────────────┼──────┤
│ 4  │ one-to-one   │ 11   │
├────┼──────────────┼──────┤
│ 5  │ harness      │ 9    │
├────┼──────────────┼──────┤
│ 6  │ paradigms    │ 9    │
├────┼──────────────┼──────┤
│ 7  │ vertical     │ 9    │
├────┼──────────────┼──────┤
│ 8  │ partnerships │ 9    │
├────┼──────────────┼──────┤
│ 9  │ benchmark    │ 9    │
├────┼──────────────┼──────┤
│ 10 │ platforms    │ 9    │
└────┴──────────────┴──────┘
Total requests served: 854
Average requests/s for the past 10s: 85.4

winnie's People

Contributors

alarv avatar

Watchers

 avatar

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.