Skip to content

Commit

Permalink
Update timesketch/lib/analyzers/feature_plugins/winevt_features.py
Browse files Browse the repository at this point in the history
Co-authored-by: Janosch <[email protected]>
  • Loading branch information
roshanmaskey and jkppr authored Oct 26, 2023
1 parent 0c9d4b7 commit 16820c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion timesketch/lib/analyzers/feature_plugins/winevt_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def validate_feature_config(self, name: str, config: dict) -> None:
isinstance(config.get("source_name"), list)
or isinstance(config.get("provider_identifier"), list)
):
raise ValueError("Either source_name or provider_identifier must be a list")
raise ValueError(
"[%s] Either 'source_name' or 'provider_identifier' are required and have to be a list!"
% name
)```

if not isinstance(config.get("event_identifier"), int):
raise ValueError("event_identifier is missing or has invalid value")
Expand Down

0 comments on commit 16820c3

Please sign in to comment.