:py:mod:`dissect.target.plugins.os.windows.log.evt` =================================================== .. py:module:: dissect.target.plugins.os.windows.log.evt Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.target.plugins.os.windows.log.evt.WindowsEventlogsMixin dissect.target.plugins.os.windows.log.evt.EvtPlugin Attributes ~~~~~~~~~~ .. autoapisummary:: dissect.target.plugins.os.windows.log.evt.re_illegal_characters dissect.target.plugins.os.windows.log.evt.EvtRecordDescriptor dissect.target.plugins.os.windows.log.evt.EVT_GLOB .. py:data:: re_illegal_characters .. py:data:: EvtRecordDescriptor .. py:data:: EVT_GLOB :value: '*.evt' .. py:class:: WindowsEventlogsMixin .. py:attribute:: EVENTLOG_REGISTRY_KEY :value: 'HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Eventlog' .. py:attribute:: LOGS_DIR_PATH :value: None .. py:method:: get_logs(filename_glob: str = '*') -> list[pathlib.Path] .. py:method:: get_logs_from_dir(logs_dir: str, filename_glob: str = '*') -> list[pathlib.Path] .. py:method:: get_logs_from_registry(filename_glob: str = '*') -> list[pathlib.Path] .. py:method:: check_compatible() -> None .. py:class:: EvtPlugin(target: dissect.target.target.Target) Bases: :py:obj:`WindowsEventlogsMixin`, :py:obj:`dissect.target.plugin.Plugin` Windows ``.evt`` event log plugin. .. py:attribute:: LOGS_DIR_PATH :value: '%windir%/system32/config' .. py:attribute:: NEEDLE :value: b'LfLe' .. py:attribute:: CHUNK_SIZE :value: 65536 .. py:method:: evt(log_file_glob: str = EVT_GLOB, logs_dir: str | None = None) -> collections.abc.Iterator[EvtRecordDescriptor] Parse Windows Eventlog files (``*.evt``). Yields dynamically created records based on the fields in the event. At least contains the following fields: .. code-block:: text hostname (string): The target hostname. domain (string): The target domain. ts (datetime): The TimeCreated_SystemTime field of the event. Provider_Name (string): The Provider_Name field of the event. EventID (int): The EventID of the event. .. py:method:: scraped_evt() -> collections.abc.Iterator[EvtRecordDescriptor] Yields EVT log file records scraped from target disks.