From e960586ede1d207559f0872d9fa67e6e1ace70da Mon Sep 17 00:00:00 2001 From: ichiichi11 Date: Thu, 13 May 2021 22:05:49 +0900 Subject: [PATCH] fix comment --- src/detections/detection.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/detections/detection.rs b/src/detections/detection.rs index a5d2a797..284d8e0d 100644 --- a/src/detections/detection.rs +++ b/src/detections/detection.rs @@ -16,10 +16,11 @@ use std::{fs::File, sync::Arc}; const DIRPATH_RULES: &str = "rules"; +// イベントファイルの1レコード分の情報を保持する構造体 #[derive(Clone, Debug)] pub struct EvtxRecordInfo { - evtx_filepath: String, - record: Value, + evtx_filepath: String,// イベントファイルのファイルパス ログで出力するときに使う + record: Value, // 1レコード分のデータをJSON形式にシリアライズしたもの } // TODO テストケースかかなきゃ... @@ -128,7 +129,7 @@ impl Detection { return ret; } - // evtxファイルからxmlを生成する。 + // evtxファイルからEvtxRecordInfoを生成する。 // 戻り値は「どのイベントファイルから生成されたXMLかを示すindex」と「変換されたXML」のタプルです。 // タプルのindexは、引数で指定されるevtx_filesのindexに対応しています。 async fn evtx_to_json(