Skip to content

Commit

Permalink
Update convert.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aarz-snl authored Feb 19, 2024
1 parent 7e7c5f6 commit 0a63cc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def main():

winlogbeat_events = []
for event in events:
if "Time Created" not in event:
print("Missing 'Time Created' in event:", event)
continue
winlogbeat_json = convert_to_winlogbeat_json(event)
winlogbeat_events.append(winlogbeat_json)

Expand All @@ -47,5 +50,6 @@ def main():

print("Conversion completed. Winlogbeat-formatted JSON saved to:", output_file_path)


if __name__ == "__main__":
main()

0 comments on commit 0a63cc3

Please sign in to comment.