add target event filtering. (#242)
This commit is contained in:
committed by
GitHub
parent
84f17323da
commit
2febaa9b73
@@ -85,6 +85,10 @@ pub fn read_csv(filename: &str) -> Result<Vec<Vec<String>>, String> {
|
||||
return Result::Ok(ret);
|
||||
}
|
||||
|
||||
pub fn is_target_event_id(s: &String) -> bool {
|
||||
return configs::CONFIG.read().unwrap().target_eventids.is_target(s);
|
||||
}
|
||||
|
||||
pub fn get_event_id_key() -> String {
|
||||
return "Event.System.EventID".to_string();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user