Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evtx.parser #23

Open
alex87fr opened this issue Oct 31, 2022 · 1 comment
Open

Evtx.parser #23

alex87fr opened this issue Oct 31, 2022 · 1 comment

Comments

@alex87fr
Copy link

Hello,
it's impossible to import from evtx.parser.....why please ? how to use this one for json strings ? please

@Pyvonix
Copy link

Pyvonix commented Aug 14, 2023

Just a small mistake in the examples probably due to code/package rework.

Just remove the parser in the import line, like:

from evtx import PyEvtxParser

parser = PyEvtxParser("./evtx-supervisor/samples/Security_short_selected.evtx")

for record in parser.records_json():
    print(f'Event Record ID: {record["event_record_id"]}')
    print(f'Event Timestamp: {record["timestamp"]}')
    print(record['data'])
    print('------------------------------------------')

Event Record ID: 7
Event Timestamp: 2016-06-29 15:25:08.822 UTC
{
  "Event": {
    "#attributes": {
      "xmlns": "http://schemas.microsoft.com/win/2004/08/events/event"
    },
    .....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants