You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have MS Security Event Logs in EVTX format. I'm able to read them using williballenthin/python-evtx, but it's incredibly slow.
Thus, I wanted to export the events using pyevtx-rs, but the EVTX data seems to be corrupt, since I get the following Traceback:
The code I'm using is the one for getting JSON from the EVTX written in your README.
As I don't know, why one lib is parsing the EVTX without issues and the other one crashes, and also don't know where exactly the malformed chunk header is, I'd like to ask for the implementation of some debug informations, like the EventNumber of the event which caused the crash and other information. So it would be easier to find the reason for the crash.
// Edit
I tested the original Rust Code and run the current release executable on the Security Event Logs.
To be clear, these Event Logs are just exported from the Eventviewer and no additional changes have been made.
So, either there's something not correctly handled within the code, or the events are not formatted as expected, what would be a MS issue.
The code crached as well due to invalid chunk headers. This is the error message I get:
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21811:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[6,24,37,3F,47,FD,37,60]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21821:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[B4,25,AB,A,2,74,A7,3B]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21831:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[6F,F7,7E,88,83,D4,F7,D8]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21841:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[78,AA,B5,63,6A,D7,E4,F9]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21851:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[EA,39,57,5A,90,C,50,B5]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21861:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[F7,FB,B2,9D,20,E2,78,21]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21871:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[21,F3,53,F3,A0,40,AC,32]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21881:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[AB,63,B1,65,8,29,39,E9]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21891:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[5D,A4,2F,3D,47,1E,6F,54]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21901:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[A1,2C,AE,6A,3C,47,BE,6B]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21911:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[21,98,0,73,A8,81,0,7F]`
Failed to dump the next record.Caused by:0:Failed to parse chunk number 21921:Failed to parse chunk header
2:InvalidEVTX chunk header magic, expected `ElfChnk0`, found `[5B,1,9A,DC,E6,37,E1,45]`
The text was updated successfully, but these errors were encountered:
I have MS Security Event Logs in EVTX format. I'm able to read them using williballenthin/python-evtx, but it's incredibly slow.
Thus, I wanted to export the events using pyevtx-rs, but the EVTX data seems to be corrupt, since I get the following Traceback:
The code I'm using is the one for getting JSON from the EVTX written in your README.
As I don't know, why one lib is parsing the EVTX without issues and the other one crashes, and also don't know where exactly the malformed chunk header is, I'd like to ask for the implementation of some debug informations, like the EventNumber of the event which caused the crash and other information. So it would be easier to find the reason for the crash.
// Edit
I tested the original Rust Code and run the current release executable on the Security Event Logs.
To be clear, these Event Logs are just exported from the Eventviewer and no additional changes have been made.
So, either there's something not correctly handled within the code, or the events are not formatted as expected, what would be a MS issue.
The code crached as well due to invalid chunk headers. This is the error message I get:
The text was updated successfully, but these errors were encountered: