Matomo does provide an alternative to leverage web server log files (beyond the usual client side javascript)...using a python script:
https://matomo.org/faq/log-analytics-tool/When i first migrated (my personal sites) away from GA, i was concerned about performance, so was considering using server logs, and stumbled upon this feature of matomo. The javascript approach ended up not being the performance issue that i thought it would be...so i never ended up using the python script...So your mileage may vary, but to your question, this does exist.