haproxy/contrib
Olivier Burgard e97b904801 CONTRIB: halog: Filter input lines by date and time through timestamp
I wanted to make a graph with average answer time in nagios that takes only
the last 5 mn of the log. Filtering the log before using halog was too
slow, so I added that filter to halog.

The patch attached to this mail is a proposal to add a new option : -time
[min][:max]

The values are min timestamp and/or max timestamp of the lines to be used
for stats. The date and time of the log lines between '[' and ']' are
converted to timestamp and compared to these values.

Here is an exemple of usage :
cat /var/log/haproxy.log | ./halog -srv -H -q -time $(date --date '-5 min' +%s)
2014-05-23 16:18:48 +02:00
..
base64 [CONTRIB] add base64rev-gen.c that was used to generate the base64rev table. 2010-01-31 19:14:07 +01:00
halog CONTRIB: halog: Filter input lines by date and time through timestamp 2014-05-23 16:18:48 +02:00
ip6range CONTRIB: ip6range: add a network IPv6 range to mask converter 2014-03-17 18:06:06 +01:00
iprange MINOR: contrib: make the iprange tool grep for addresses 2012-12-13 00:11:02 +01:00
netsnmp-perl [CONTRIB] Update Cacti Tempates 2010-10-30 19:04:36 +02:00
selinux [CONTRIB] selinux policy for haproxy 2009-03-21 10:15:00 +01:00
systemd MEDIUM: add systemd service 2013-02-13 10:47:59 +01:00
trace MINOR: add a new function call tracer for debugging purposes 2012-05-26 00:12:37 +02:00