removed filepath extension #162 (#181)

This commit is contained in:
DustInDark
2021-11-10 22:55:37 +09:00
committed by GitHub
parent be04a0410e
commit 22b36314a3
2 changed files with 2 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ fn test_emit_csv() {
let expect = "Time,Filepath,Rulepath,Level,Computername,Eventid,Alert,Details\n".to_string()
+ &expect_tz.clone().format("%Y-%m-%dT%H:%M:%S%:z").to_string()
+ ","
+ testfilepath
+ &testfilepath.replace(".evtx", "").to_string()
+ ","
+ testrulepath
+ ","

View File

@@ -50,7 +50,7 @@ impl Message {
event_detail: String,
) {
let detect_info = DetectInfo {
filepath: target_file,
filepath: target_file.replace(".evtx", ""),
rulepath: rule_path,
level: level,
computername: computername,