From 025bfa89c814710ba99ad0562c556bd2323d2b6c Mon Sep 17 00:00:00 2001 From: Jean-Louis Huynen Date: Fri, 26 Jun 2020 15:20:13 +0200 Subject: [PATCH] chg [sshd] omitempty json fields --- logcompiler/sshd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/logcompiler/sshd.go b/logcompiler/sshd.go index e6b1fb5..6495154 100644 --- a/logcompiler/sshd.go +++ b/logcompiler/sshd.go @@ -42,9 +42,9 @@ type GrokedSSHD struct { type MISP_auth_failure_sshd_username struct { Name string `json:"name"` Mtype string `json:"type"` - Username string `json:"username"` - Destination string `json:"ip-dst"` - Source string `json:"ip-src"` + Username string `json:"username,omitempty"` + Destination string `json:"ip-dst,omitempty"` + Source string `json:"ip-src,omitempty"` Total string `json:"total"` }