Skip to content

TritonDataCenter/node-haproxy-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haproxy-log: haproxy log file parser

This module provides a very basic parser for the haproxy "HTTP" log file format as recorded by syslog. For information about the haproxy log file, see the haproxy documentation. There's a great deal of detail in the section called "Logging".

This implementation is somewhat restrictive in the format that it recognizes. Unrecognized lines generate a warning to stderr or cause the program to exit prematurely with an error.

Synopsis

To install the command-line tool:

$ npm install -g haproxy-log
...
$ haplog my-haproxy-log.txt

You may also use the parser object directly. For an example, see the implementation of the "haplog" command.

Contributing

See separate contribution guidelines.