From d372ed8c4c69c6f687259bc60b85c836c4148183 Mon Sep 17 00:00:00 2001 From: neargle Date: Mon, 2 Apr 2018 12:42:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Windows=E7=99=BB=E5=BD=95=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=9B=91=E6=8E=A7=20=E7=99=BB=E5=BD=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/collect/loginlog_windows.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/agent/collect/loginlog_windows.go b/agent/collect/loginlog_windows.go index a48e293..dec6197 100644 --- a/agent/collect/loginlog_windows.go +++ b/agent/collect/loginlog_windows.go @@ -1,5 +1,7 @@ // +build windows +// 迭代和设计过程:https://mp.weixin.qq.com/s/rHDJ2tQWEaZLikMt5bgCsw + package collect import ( @@ -251,7 +253,7 @@ func GetLoginLog() (resultData []map[string]string) { } func getSuccessLog(timestamp int64) (resultData []map[string]string) { - l, err := newWinEventLog("4625") + l, err := newWinEventLog("4624") if err != nil { return } @@ -277,7 +279,7 @@ func getSuccessLog(timestamp int64) (resultData []map[string]string) { return } func getFailedLog(timestamp int64) (resultData []map[string]string) { - l, err := newWinEventLog("4624") + l, err := newWinEventLog("4625") if err != nil { return }