Giter VIP home page Giter VIP logo

analyze's Introduction

Analyze

Analyze is an API usage analysis tool for the Code for Mexico Datos API. It was designed to parse Nginx access logs as a means of determining the most highly used API services.

Installation

git clone https://github.com/rclosner/analyze.git
cd analyze
bundle

Usage

./bin/analyze_service --options

#=>
/aire: 43367
/aire/calidad: 2
/aire/clima: 19481
/aire/uv: 20
/georeferencia: 166
/georeferencia/estacionamientos: 1
/georeferencia/mercado: 1
/georeferencia/salud: 1
/georeferencia/turismo: 1
/georeferencia/verificentros: 2
/movilidad: 3843
/movilidad/ecobici: 10
/movilidad/taxis: 234
/movilidad/taxis/conductor: 152
/servicios: 102
/servicios/buzon: 3

##Options

  • --path, -p : Path to Nginx access logs
  • --service, -s : Service to analyze (valid_services: [API]) (default_service: API)
  • --sort, -o : Sorting method (valid_method: [service, hits]) (default_method: service)
  • --before, -b : Ignores all log items after a specified time (format: '24/Jan/2014:11:19:39 -0600')
  • --after, -a : Ignores all log items before a specified time (format: '24/Jan/2014:11:19:39 -0600')
  • --help, -h: Show this message

Contributing

  • Fork the project.
  • Make your feature addition or bug fix.
  • Commit, do not mess with Rakefile or version
  • Send me a pull request. Bonus points for topic branches.

analyze's People

Watchers

 avatar

Forkers

labplc

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.