Skip to content

Commit

Permalink
Merge pull request #13 from massimiliano-dalcero/master
Browse files Browse the repository at this point in the history
Update Evtx2es.py
  • Loading branch information
sumeshi authored May 28, 2024
2 parents 98abc6f + e50fde9 commit 2881abe
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/evtx2es/models/Evtx2es.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,9 @@ def format_record(record: dict, filepath: str, shift: Union[str, datetime]):
pass

try:
record["userdata"] = {
"address": record["data"]["Event"]["UserData"]["EventXML"]["Address"],
"sessionid": record["data"]["Event"]["UserData"]["EventXML"][
"SessionID"
],
"user": record["data"]["Event"]["UserData"]["EventXML"]["User"],
}
record["userdata"] = record["data"]["Event"].get(
"UserData", dict()
)
except KeyError:
pass

Expand Down

0 comments on commit 2881abe

Please sign in to comment.