Skip to content

Commit

Permalink
Merge pull request #45 from ZikyHD/add_xxhash
Browse files Browse the repository at this point in the history
Add xxhash with events
  • Loading branch information
wagga40 authored Dec 7, 2022
2 parents 76e7403 + c8b4da3 commit cbacc34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zircolite.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ def flatten(x, name=""):
try:
dictToFlatten = json.loads(line)
dictToFlatten.update({"OriginalLogfile": filename})
dictToFlatten.update({"OriginalLogLinexxHash": xxhash.xxh64_hexdigest(line[:-1])})
flatten(dictToFlatten)
except Exception as e:
self.logger.debug(f"JSON ERROR : {e}")
Expand Down

0 comments on commit cbacc34

Please # to comment.