This (edit: switching ownership) is possible in principle, of course, but it may well interrupt Pi-hole's UI operation, so I would advise strongly against it.
You wouldn't have to change ownership for www-data. Just prepending sudo to the tail command should do what you want.
Since you are referring to instructions from a 2016 topic, I wouldn't know if that still works in 2020.
If you are willing to try it, please consider sharing if it actually does so with the sudo variation.
For the owner www-data , permissions are: rwx = 111 = 7
For the group www-data: r-x = 101 = 5
And everyone else: --- = 000 = 0
If you can figure out the user under which this Logstalgia is trying to access the logs, you could add that user to the www-data group so it would be able to do a "r-x".
You can figure out user/group for the currently running processes with below:
So get this working, you just have to add the pi user to the www-date group with below:
sudo usermod -a -G www-data pi
But ... that tail -f will work until the logs are rotated by logrotate and from then on, no new logs will be recorded.
It should be tail -F instead if want to keep tailing the log rotated files:
Thank you both for the help. I was able to add the 'pi' user to 'www-data' and access the file. I'm having trouble running Logstalgia (access.log was empty, then populated) but the issue in this ticket has been addressed and resolved. I'll tinker around and see if I can get it to work.