I actually use GoAccess on my personal site, which runs on GitHub Pages. Obviously you don't get the actual web server logs (only GitHub has those), but I have a few lines of JavaScript that hits a 1x1 image on CloudFront with the page and referrer information, and then I download the CloudFront logs and use those with GoAccess. Read more here: https://benhoyt.com/writings/replacing-google-analytics/
seems like... way too much work.
Ive changed to Goat Counter, but thanks
Just be sure to check with your legal team regarding using web logs for analytics purposes