aboutsummaryrefslogtreecommitdiff
path: root/halog.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-08-16 23:18:26 +0700
committerShulhan <ms@kilabit.info>2022-08-16 23:18:53 +0700
commit1ade2eebf51bd64c60b797c077b436b3221202bf (patch)
treecf12a3a894380af5ffec6c39a95481b35b032695 /halog.go
parent8a6eaebb36c0761b21398e72d934c072ac67fa7f (diff)
downloadhaminer-1ade2eebf51bd64c60b797c077b436b3221202bf.tar.xz
all: remove code that sending heartbeat
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.
Diffstat (limited to 'halog.go')
-rw-r--r--halog.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/halog.go b/halog.go
index fd3f432..b7ac16d 100644
--- a/halog.go
+++ b/halog.go
@@ -11,16 +11,6 @@ import (
"time"
)
-// heartbeat of haminer, in case we want to monitor deadman from haminer.
-var heartbeat = &Halog{ // nolint: gochecknoglobals
- Timestamp: time.Now(),
- FrontendName: "-",
- BackendName: "-",
- ServerName: "-",
- tagHTTPURL: "-",
- HTTPMethod: "-",
-}
-
// Halog contains the mapping of haproxy HTTP log format to Go struct.
//
// Reference: https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#8.2.3