BUGFIX: Fix flat output operation time (it was connection time until now)

This commit is contained in:
yo 2022-11-13 10:50:23 +01:00
parent ea673b809c
commit 145d061c52

View File

@ -125,7 +125,7 @@ var (
File os.File
Writer *bufio.Writer
Version = "0.6.8"
Version = "0.6.9"
BuildInfo = promauto.NewGaugeVec(prometheus.GaugeOpts{
Name: "openldaplogparser_build_info",
@ -217,7 +217,7 @@ func OlcToFlat(olc *OpenLdapConnection) []OpenLdapConnectionFlat {
for i := range olc.Operations {
olcf[i] = OpenLdapConnectionFlat{
Time: olc.Time,
Time: olc.Operations[i].Time,
Hostname: olc.Hostname,
Process: olc.Process,
ClientIp: olc.ClientIp,