Usage Stats problem after server changes


Server: Debian 10 + Apache2 + php7.4

Almost two months ago after some changes in the site between others in the log file name the daily process for statistics is not working, after return the name to the original name the situation is the same no data processed. What this process depends and how can I do first for restore this funcionality and how to processing the logs files that were rstores from backups ?