GithubHelp home page GithubHelp logo

gologer's Introduction

gologer

##简介 gologer 是一个C语言版nginx/apache日志分析工具,

##安装 Centos

  yum install gcc.x86_64 glib2-devel.x86_64
  gcc -o gologer gologer.c  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -lglib-2.0

Ubuntu

sudo apt-get install libglib2.0-dev
  gcc -o gologer gologer.c  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -lglib-2.0

使用方法

  ./gologer log_file 
  cat log_file | ./gologer 

  The following options can also be supplied to the command:

      -f <argument>  log_format, such as: %h %^ %^ [%d %^] \"%r\" %s %b \"%R\" \"%^\" \"%^\" %t
      -d <argument> - date_format, such as: %Y-%m-%d or %d/%b/%Y:%H:%M:%S 
      -u <argument>   S or M or H .
      -t <argument>   html
      -h              html
      ./gologer [ -f log_format][ -d date_format ][ -u time_unit ] [-t html] log_file 

  Output:
      result_20130705_114714.txt or result_20130705_114714.html

##基它 内存泄漏检测

valgrind --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes -v  ./gologer t.log 

gologer's People

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.