Git Product home page Git Product logo

logparse's Introduction

logParse 日志分析

用法

logParse -h 可以查看详细帮助

usage: logParse [-h] [-f LOGFILE] [-t LOGTYPE] [-u BASEURL] [--version]

Diannao51 web log analysis.

optional arguments:

-h, --help show this help message and exit

-f LOGFILE, --logfile LOGFILE log file to analysis.

-t LOGTYPE, --logtype LOGTYPE which type of zhe log:apache|nginx|iis

-u BASEURL, --baseurl BASEURL log for website domain url

--version show program's version number and exit

举例说明

1、分析http://diannao51.com 站点的Apache日志

logParse -f access.log -t apache -u http://diannao51.com

2、分析http://diannao51.com 站点的nginx日志

logParse -f access.log -t nginx -u http://diannao51.com

3、分析http://diannao51.com 站点的iis日志

logParse -f access.log -t iis -u http://diannao51.com

根据服务器日志类型,选择参数进行分析。

pip install argparse

pip install xlsxwriter

pip install pygeoip

pip install fileinput

logparse's People

Contributors

tradexplus avatar

Watchers

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