nginx2stathat
所属分类:Linux/Unix编程
开发工具:GO
文件大小:3KB
下载次数:0
上传日期:2013-03-18 14:30:01
上 传 者:
sh-1993
说明: 编程以观看nginx组合的access.log并将每一行发送到syslog
(Program to watch a nginx combined access.log and send every line to syslog)
文件列表:
History.md (262, 2013-03-18)
loghit (0, 2013-03-18)
loghit\loghit.go (1515, 2013-03-18)
nginx2stathat.go (2285, 2013-03-18)
nginx2stathat
===============
Program to watch a nginx combined access.log and send HTTP stats to StatHat
Installation
============
* Install Go: http://golang.org/doc/install#install
* Setup your GO environment variables (GOPATH, GOBIN, PATH)
$ sudo go install github.com/hgfischer/nginx2stathat
Usage
=====
To see the command line options of nginx2stathat, just run it without parameters (or with -h):
$ nginx2stathat -h
Currently these are the options:
Usage: ./nginx2stathat [flags] [EZ Key] [access.log]
Flags:
-parsers=4: Number of parallel routines parsing log lines and queueing them to the posters
-posters=4: Number of parallel routines sending results to StatHat
-prefix="": Stat prefix. Ex.: "`hostname -s` live site"
近期下载者:
相关文件:
收藏者: