Coder Social home page Coder Social logo

parse_httpd_log's Introduction

parse_httpd_log

Python version : 3.6.0

Usage:

python parse.py

Count the total number of HTTP requests recorded by this access logfile [(254322,)]

Find the top-10 (host) hosts makes most requests from 2017-06-10 00:00:00 to 2017-06-19 23:59:59, inclusively [('85.25.236.93', 345), ('204.12.238.106', 228), ('178.115.130.191', 180), ('62.46.92.42', 145), ('213.147.163.125', 106), ('216.218.222.12', 99), ('195.16.224.228', 92), ('109.163.234.5', 88), ('145.244.10.2', 87), ('193.187.235.17', 83)]

Find out the country with most requests originating from (according the source IP) [('205.167.170.15', 'US', 32998), ('158.64.79.7', 'LU', 10940), ('158.64.79.8', 'LU', 10611), ('85.10.113.129', 'LU', 4435), ('85.25.236.93', 'DE', 1408), ('143.161.248.25', 'AT', 1067), ('188.138.56.91', 'DE', 807), ('200.137.2.52', 'BR', 747), ('52.22.118.215', 'US', 732), ('82.80.230.228', 'IL', 724)]

parse_httpd_log's People

Contributors

chenchihchiang avatar

Watchers

 avatar  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.