aboutsummaryrefslogtreecommitdiff
path: root/halog.go
AgeCommit message (Collapse)Author
2022-08-17all: rename struct type Halog to HttpLogShulhan
Halog contains parsed HTTP log, so its make more readable if we rename the type name.
2022-08-16all: use fixed []byte for consuming UDP packetShulhan
Instead of using struct UDPPacket to read UDP packet from HAproxy log, simplify it by using fixed, reusable size of []byte directly.
2022-08-16all: remove code that sending heartbeatShulhan
Previously, if no logs received after 15 seconds (or any interval user defined in Config.ForwardInterval), the haminer process send an empty halog to forwarders (empty halog is the one that use "-" for backend, frontend, server name, and HTTP method). This cause bogus traffic and need additional filter when analyzed.
2022-08-14all: update the go.modShulhan
Set the minimum Go to 1.18 and update the share modules. When this program written, the ini library does not have the Unmarshal function, so we load the configuration by reading each key and parse it manually. Now that we have Unmarshal function, the way we parse the configuration is simplified so does the way configuration written. This changes the accept_backend, capture_request_header written. Instead of using comma to set multiple values, now it must be written one key and one value on different line.
2019-01-25haminer: send heartbeat indicator if logs is emptyv0.1.0Shulhan
An administrator may need to monitor if the haminer service is running or not through kapacitor. With heartbeat, we can tell if haminer is not running if no data is send along, say, one hour.
2019-01-04Add option to preprocess http_urlShulhan
2018-11-30all: fix warning from linterShulhan
2018-10-29Add option to parse HTTP request headerShulhan
2018-04-01haminer: Library and program to parse and forward HAProxy logsShulhan