Forensics Matters ๐Ÿ•ต๏ธ

Practical notes on digital forensics and incident response

Forensic timeline with plaso (log2timeline) on Windows

ยท

Update (October 2026): the plaso documentation now recommends running plaso on Windows with Docker rather than with a packaged Windows release, and the command-line syntax has changed a bit since 2020. The original walkthrough is below; the section at the end shows the same workflow with Docker and the current syntax.

The popular log2timeline tool, part of the plaso project, can also run directly on Windows. Why would you want that? Mostly for performance: building a super timeline can take hours, and running the tool natively instead of inside a virtual machine saves a lot of time.

In this guide we build a timeline with plaso on Windows.

1. Download plaso

Download the Windows version of plaso from the official GitHub repository (github.com/log2timeline/plaso/releases), picking the 32- or 64-bit package, and unzip it. No installation is needed.

Plaso for Windows on the GitHub releases page
Plaso for Windows

2. Extract the events with log2timeline

Open a command prompt as administrator, move to the folder where you extracted plaso and run log2timeline against your image:

log2timeline.exe plaso.dump drive_d.dd
  • plaso.dump โ€” the output storage file
  • drive_d.dd โ€” the bit-stream image of the drive you want to analyze

log2timeline asks which partition to process. In my case it’s p3, as you can see below:

log2timeline asking which partition to process
Selecting the partition in log2timeline

Next, it asks which Volume Shadow Copies (VSS) to include: press Enter if you don’t want to include any. Then wait for the processing to finish, which can take several hours.

3. Filter and export with psort

When log2timeline is done, use psort to filter the events and export them to CSV:

psort.exe -z "UTC" -o l2tcsv -w timeline.csv plaso.dump "date > '2020-09-01 00:00:00' and date < '2020-10-15 00:00:00'"
  • -z "UTC" โ€” the time zone of the output
  • -o l2tcsv โ€” the output format, the CSV format of the original log2timeline
  • -w timeline.csv โ€” the output file
  • plaso.dump โ€” the storage file created by log2timeline
  • the last argument is the filter: here, only the events between 1 September and 15 October 2020 (dates in YYYY-MM-DD HH:MM:SS format)

4. Review the timeline

You now have a CSV file with your timeline. To make it easier to review, import it into the colorized super timeline template made by Rob Lee at SANS: Digital Forensic SIFTing: Colorized Super-Timeline Template for log2timeline Output Files.

Enjoy your first timeline built on Windows!

2026 update: Docker and the current syntax

Today, log2timeline takes the storage file as a named option (--storage-file, with the .plaso extension) and psort sets the output time zone with --output-time-zone. With Docker Desktop on Windows, and your evidence in C:\cases, the same workflow looks like this:

docker pull log2timeline/plaso
docker run -it -v C:\cases:/data log2timeline/plaso log2timeline.py --storage-file /data/timeline.plaso /data/drive_d.dd
docker run -it -v C:\cases:/data log2timeline/plaso psort.py --output-time-zone UTC -o l2tcsv -w /data/timeline.csv /data/timeline.plaso "date > '2020-09-01 00:00:00' and date < '2020-10-15 00:00:00'"

The -it flags keep the session interactive, so log2timeline can still ask you which partitions and shadow copies to process.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.