diff --git a/parsers/logarchive.py b/parsers/logarchive.py index d21e314..a395889 100644 --- a/parsers/logarchive.py +++ b/parsers/logarchive.py @@ -260,8 +260,9 @@ def convert_entry_to_unifiedlog_format(entry: dict) -> dict: # keep the non-matching entries new_entry[key] = value # convert time - new_entry['datetime'] = new_entry['time'] - new_entry['timestamp'] = datetime.fromisoformat(new_entry['time']).timestamp() + timestamp = datetime.fromisoformat(new_entry['time']) + new_entry['datetime'] = timestamp.isoformat() + new_entry['timestamp'] = timestamp.timestamp() new_entry['time'] = new_entry['timestamp'] * 1000000000 return new_entry