Skip to content

Plaso (log2timeline)

70 commands

Extracts timestamps from hundreds of artefact types and builds a “super timeline” for forensic investigation.

  • timeline
  • DFIR
  • artefacts

Install Plaso (log2timeline)

sudo apt install plaso

Basic Syntax & Help5

log2timeline.py --version

Displays the installed version of the log2timeline extraction tool

log2timeline.py --help

Shows the main help menu and available arguments for the extraction tool

log2timeline.py --info

Lists all available parsers, parser plugins, and hashers supported by the current installation

psort.py -o list

Lists all available output modules for rendering timeline data

psort.py --analysis list

Lists all available analysis plugins for post-processing timelines

Basic Timeline Creation2

log2timeline.py [STORAGE_FILE] [SOURCE]

Performs a standard extraction of all supported artifacts from a disk image to a storage file

Link
log2timeline.py [STORAGE_FILE] [DIRECTORY]

Extracts forensic events recursively from a logical directory path instead of a disk image

Link

Parser Configuration6

log2timeline.py --parsers 'win7' [STORAGE] [SOURCE]

Restricts extraction to the Windows 7 parser preset, optimizing for that operating system

Link
log2timeline.py --parsers 'linux' [STORAGE] [SOURCE]

Restricts extraction to the Linux parser preset for standard Linux artifacts

Link
log2timeline.py --parsers 'macosx' [STORAGE] [SOURCE]

Restricts extraction to macOS specific parsers and plugins

Link
log2timeline.py --parsers 'webhist' [STORAGE] [SOURCE]

Runs only web history parsers to extract browser activity from Chrome, Firefox, Safari, and Edge

Link
log2timeline.py --parsers '!filestat' [STORAGE] [SOURCE]

Excludes the filestat parser to reduce noise if file system metadata events are not required

Link
log2timeline.py --parsers 'winevtx,winreg' [STORAGE] [SOURCE]

Manually selects only the Windows Event Log and Windows Registry parsers for targeted extraction

Link

Evidence Handling3

log2timeline.py --vss_stores all [STORAGE] [SOURCE]

Automatically processes all detected Volume Shadow Copies (VSS) found on the image

Link
log2timeline.py --vss_stores 1,3 [STORAGE] [SOURCE]

Processes only specific Volume Shadow Copy stores identified by index

Link
log2timeline.py --partition [NUMBER] [STORAGE] [SOURCE]

Targets a specific partition number on a multi-partition disk image

Link

Processing & Hashing2

log2timeline.py --hashers 'md5' [STORAGE] [SOURCE]

Calculates MD5 hashes for every file processed during the extraction phase

Link
log2timeline.py --hashers 'sha256' [STORAGE] [SOURCE]

Calculates SHA256 hashes for file integrity verification during extraction

Link

Performance Tuning3

log2timeline.py --workers [NUMBER] [STORAGE] [SOURCE]

Specifies the number of worker processes to spawn for parallel processing

Link
log2timeline.py --buffer_size [SIZE] [STORAGE] [SOURCE]

Adjusts the read buffer size to optimize I/O performance for specific storage types

Link
log2timeline.py --temporary_directory [PATH] [STORAGE] [SOURCE]

Redirects temporary files to a specific path, useful for utilizing high-speed SSDs during processing

Link

Storage Management1

log2timeline.py --compression 'none' [STORAGE] [SOURCE]

Disables compression on the output storage file to improve write speed at the cost of disk space

Link

Basic Analysis & Output4

psort.py -o l2tcsv -w [OUTPUT.CSV] [STORAGE]

Converts the Plaso storage file into the standard Log2Timeline CSV format

Link
psort.py -o json -w [OUTPUT.JSON] [STORAGE]

Exports the timeline events into a standard JSON format for ingestion by other tools

Link
psort.py -o json_line -w [OUTPUT.JSONL] [STORAGE]

Exports events as JSON Lines (newline delimited JSON), ideal for Timesketch or ElasticSearch ingestion

Link
psort.py -o tln -w [OUTPUT.TLN] [STORAGE]

Exports the data in the specific TLN (Timeline) format

Link

Time & Zone Handling2

psort.py -z 'UTC' -o l2tcsv -w [OUTPUT] [STORAGE]

Forces the output timeline to display all timestamps in Coordinated Universal Time (UTC)

Link
psort.py -z 'EST5EDT' -o l2tcsv -w [OUTPUT] [STORAGE]

Adjusts output timestamps to the US Eastern timezone, accounting for daylight savings

Link

Filtering & Slicing2

psort.py --slice '[DATE]' [STORAGE]

Extracts events that occurred strictly after the specified ISO 8601 timestamp

Link
psort.py --slice '[START]...[END]' [STORAGE]

Create a timeline restricted to a specific date range window

Link

Advanced Filtering4

psort.py [STORAGE] 'parser is "[PARSER]"'

Filters the output to include only events generated by the specified parser (e.g., Windows Event Logs)

Link
psort.py [STORAGE] 'source is "[SOURCE]"'

Filters the output based on the user-friendly source description of the artifact

Link
psort.py [STORAGE] 'message contains "[KEYWORD]"'

Performs a text search within the event message body for specific keywords

Link
psort.py [STORAGE] 'filename contains "[NAME]"'

Filters events where the associated filename matches the search string

Link

Complex Filtering2

psort.py [STORAGE] '[FILTER1] and [FILTER2]'

Combines filters using logical AND to find specific events (e.g., Login ID 4624 in Event Logs)

Link
psort.py [STORAGE] '[FILTER1] or [FILTER2]'

Combines filters using logical OR to broaden the search scope

Link

All-in-One Workflow2

psteal.py --source [IMAGE] -o l2tcsv -w [OUTPUT]

Simultaneously extracts events and sorts them into a CSV, bypassing the intermediate storage file

Link
psteal.py --source [IMAGE] --parsers [PRESET] -w [OUTPUT]

Performs a targeted extraction and export of web history in a single execution

Link

Storage Metadata3

pinfo.py [STORAGE_FILE]

Displays general metadata about the storage file, including extraction start time and Plaso version

Link
pinfo.py -v [STORAGE_FILE]

Displays verbose details about the storage file, including counts of events per parser

Link
pinfo.py --verify_storage [STORAGE_FILE]

Checks the internal integrity of the Plaso storage file to ensure data is not corrupted

Link

Incident Response - User Activity1

psort.py [STORAGE] 'parser is "winreg" and message contains "UserAssist"'

Isolates UserAssist registry keys to determine which GUI applications were executed by a user

Link

Incident Response - Program Execution2

psort.py [STORAGE] 'parser is "prefetch"'

Extracts Windows Prefetch data to analyze application execution history and frequency

Link
psort.py [STORAGE] 'parser is "winevtx" and message contains "7045"'

Filters for Event ID 7045 to identify newly installed Windows services, a common persistence mechanism

Link

Incident Response - USB Hunting1

psort.py [STORAGE] 'parser is "winreg" and message contains "USBSTOR"'

Searches Registry artifacts for USBSTOR keys to identify removable devices connected to the system

Link

Incident Response - Network1

psort.py [STORAGE] 'parser is "winreg" and message contains "Interfaces"'

Extracts network interface configurations and history from the System registry hive

Link

Analysis Plugins2

psort.py --analysis 'unique_domains_visited' [STORAGE]

Runs a post-processing analysis plugin to summarize unique web domains found in the timeline

Link
psort.py --analysis 'tagging' --tagging_file [FILE] [STORAGE]

Automatically tags events in the timeline matching rules defined in an external text file

Link

ElasticSearch Integration1

psort.py -o elastic --server [IP] --index_name [NAME] [STORAGE]

Exports timeline events directly into an ElasticSearch instance for visualization in Kibana

Link

Timesketch Integration1

psort.py -o timesketch --name [TIMELINE_NAME] [STORAGE]

Uploads the timeline directly to a Timesketch server instance (requires ~/.plaso_timesketchrc configuration)

Link

File Extraction3

image_export.py --names [FILENAME] [IMAGE]

Extracts specific files (like the $MFT) from the disk image based on exact filename matching

Link
image_export.py --extensions [EXT] [IMAGE]

Extracts all files with specific extensions from the forensic image to the local directory

Link
image_export.py --filter [FILTER] [IMAGE]

Extracts files from the image that match specific metadata criteria like modification timestamps

Link

Debug & Troubleshooting3

log2timeline.py -d [STORAGE] [SOURCE]

Runs the extraction in debug mode, providing extensive console output for troubleshooting parser errors

Link
log2timeline.py --logfile [FILE] [STORAGE] [SOURCE]

Writes all execution logs to a specific file instead of standard output for later review

Link
log2timeline.py --profiling_type 'memory' [STORAGE] [SOURCE]

Enables memory profiling to monitor resource usage during the extraction process

Link

Output Formatting2

psort.py -o dynamic --fields [FIELDS] [STORAGE]

Creates a CSV with a user-defined column structure, useful for creating reports with specific columns only

Link
psort.py --additional_fields [FIELDS] [STORAGE]

Adds extra metadata fields to the standard CSV output that are normally hidden

Link

Artifact Definitions1

log2timeline.py --artifact_definitions [PATH] [STORAGE] [SOURCE]

Uses a custom artifacts definition file to direct the tool to non-standard file locations

Link

Filter File Usage1

log2timeline.py --file_filter [PATH] [STORAGE] [SOURCE]

Restricts extraction to a list of files and paths specified in an external text file

Link

YARA Integration1

log2timeline.py --yara_rules [PATH] [STORAGE] [SOURCE]

Applies YARA rules during extraction to flag or extract files matching specific signatures

Link

Advanced Workflow - Deduplication1

psort.py --dedup [STORAGE]

Removes duplicate timeline entries that share the exact same timestamp and message content

Link

Threat Hunting - Shimcache1

psort.py [STORAGE] 'parser is "shimcache"'

Extracts Application Compatibility Cache (Shimcache) data to identify executables present on the system

Link

Threat Hunting - Amcache1

psort.py [STORAGE] 'parser is "amcache"'

Extracts Amcache.hve data to correlate SHA1 hashes with filenames and execution timestamps

Link

Threat Hunting - PowerShell1

psort.py [STORAGE] 'message contains "PowerShell"'

Filters for PowerShell activity across Event Logs and other artifacts to detect script execution

Link

Threat Hunting - RDP1

psort.py [STORAGE] 'message contains "TerminalServices"'

Filters for Terminal Services logs to reconstruct Remote Desktop Protocol (RDP) sessions

Link

Threat Hunting - Scheduled Tasks1

psort.py [STORAGE] 'parser is "winevtx" and message contains "Task Scheduler"'

Identifies creation and execution of scheduled tasks, often used for persistence

Link

Reporting - Tagged Events1

psort.py -w [OUTPUT] --tagged_events [STORAGE]

Exports only the events that were tagged by analysis plugins, creating a concise report of findings

Link

Automated Pipeline1

psteal.py --source [IMAGE] --parsers 'win7' --analysis 'tagging' --tagging_file [RULES]

Runs a complete pipeline: extraction, Windows parsing, tagging based on rules, and output generation

Link

Cleanup1

log2timeline.py --force [STORAGE] [SOURCE]

Forces the overwrite of an existing storage file if it already exists during a new extraction

Link