Skip to content

jiancheung/haproxyparse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Haproxyparse

haproxyparse is a small utility for parsing haproxy logs into a format compatible with go-bench.

Usage

Usage of ./haproxyparse:
  -e="": Only output lines starting before specified date (in RFC3339 format)
  -f="": Format to pull haproxy log attributes into go-bench "extras" param
  -m="": Only output lines with the specified http method (GET,POST,etc)
  -n=false: Use normalized timestamps (all requests evenly spaced one second apart
  -s="": Only output lines starting after specified date (in RFC3339 format)

You can either pass an haproxy log to haproxyparse via stdin or specify the file path with the -f flag.

Building

haproxyparse should build with go 1.3+, with simply:

$ go build

Testing

Run tests with:

$ go test

About

parser for haproxy logs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%