Is there a way to retrieve a log with histories on all apps currently or previously installed on an iPad?
You can use https://privacy.apple.com and request a log of Apple ID details. May take some days.
In App Store, in the profile section, one can visit all previous purchases and hide/unhide purchases.
Easy way to see a list of all the apps I have installed on my iPhone This suggests using Apple Configurator and after plugging in, go to Actions -> export -> information.