GithubHelp home page GithubHelp logo

ngxlog's Introduction

ngxlog

nginx 日志分析工具

编译生成可执行文件

cd ngxlog/main/
go build evaluate.go

用法

Usage of ./evaluate:
  -interval int (指定间隔时间,统计系统稳定性)
    	Specify the interval to calculate system stability. default 60 seconds (default 60)
  -logs string (要分析的ngx日志文件,已逗号分割)
    	Specify the log file. use ',' separated if you want to analyse mlti log (default "-")
  -project string (对应日志文件的业务名称,以逗号分割)
    	Specify the business thread. please direct to logs (default "-")
  -to string (邮件接收人,如有多个,用逗号分隔)
    	Specify the email address. If you want to specify multiple recipients, use a ',' separated string (default "[email protected]")

example

以5分钟为间隔,统计双师、APP业务系统的稳定性和其它指标
./evaluate -logs api.access.log.20181025,api-shuangshi.access.log.20181025 -project 腾跃APP业务,腾跃双师业务 -to [email protected] -interval 300

ngxlog's People

Contributors

meichaofan avatar

Watchers

James Cloos 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.