dissect.target.plugins.os.unix.log.helpers

Module Contents

Functions

iso_readlines

Iterator reading the provided log file in ISO format. Mimics year_rollover_helper behaviour.

is_iso_fmt

Determine if the provided log file uses ISO 8601 timestamp format logging or not.

Attributes

dissect.target.plugins.os.unix.log.helpers.log
dissect.target.plugins.os.unix.log.helpers.RE_TS
dissect.target.plugins.os.unix.log.helpers.RE_TS_ISO
dissect.target.plugins.os.unix.log.helpers.RE_LINE
dissect.target.plugins.os.unix.log.helpers.iso_readlines(file: pathlib.Path, max_lines: int | None = None) Iterator[tuple[datetime.datetime, str]]

Iterator reading the provided log file in ISO format. Mimics year_rollover_helper behaviour.

dissect.target.plugins.os.unix.log.helpers.is_iso_fmt(file: pathlib.Path) bool

Determine if the provided log file uses ISO 8601 timestamp format logging or not.