Are you familiar with the OL Connect Rest API? There is an end point which allows you to retrieve statistics of your job.
In OL Connect 2024.2 this returns documents and document sets in JSON format. You can add meta data to each document via the Job Preset, this information is returned as part of the job statistics. As the data is returned in JSON format so you may need to iterate the data and write the desired CSV structure.