Onedrive and parsing log-files

Onedrive log-files are in a propietary format and troubleshooting with them is something else than read event logs or parsing text-files.

Thankfully someone has written a python script to parse and extract the information located on Github

To use it on Windows – the following is required;

  1. Install Python from Microsoft Store –Python 3.11 – Free download and install on Windows | Microsoft Store
  2. Retrieve the Python script odl.py OneDrive/odl.py at main · ydkhatri/OneDrive · GitHub
  3. Install the pre-requisites using the following commands;
    python -m pip install Construct
    python -m pip install pycryptodome

  4. Generate the CSV output file at the desktop using the log-files from %LOCALAPPDATA%
    python odl.py -o c:\users\<user>\desktop\onedrive.csv c:\users\<user>\appdata\local\microsoft\onedrive\logs\business1

Leave a Reply

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