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