SOLVED apache domlogs filled with files

elmister

Well-Known Member
Mar 2, 2004
48
3
158
I have a problem with a server that now has 180GB of logs in var log apache domlogs
there are thousands of file names and the filenames are multiple IP addresses, visitor IPs, each file contains apache logs files for accesses made from the IP in the filename, but the lines doesn't contain the IP

Example: filename 66.249.64.157 (which is a googlebot ip) contains lines
- - [10/Feb/2022:12:49:41 +0100] "GET / HTTP/1.1" 301 2560 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
- - [10/Feb/2022:18:53:01 +0100] "GET /?filter=latest HTTP/1.1" 200 35080 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
- - [10/Feb/2022:18:55:07 +0100] "GET /wp-content/uploads/2019/05/77245610e9dc3c82231ae7cdfbf2a395.27-320x180.jpg HTTP/1.1" 200 9129 "-" "Googlebot-Image/1.0"


there is no mention about the domain name that was accessed

I can't find in httpd.conf how are these files being created, so i supose they are being created by splitlogs, the files are not being rotated.

What am i missing here? How can i have these files rotated or not generated?
 

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
169
28
153
Houston
cPanel Access Level
Root Administrator
Hello! We've had reports of users encountering the same issue you reported when they have mod_remoteip configured through an Apache include file:

Configuring LogFormat through an Apache Include creates a log file for each IP

I would recommend reviewing this article to see if the workaround is applicable in your situation. If this does not seem to match the issue you encountered, I would recommend opening a support ticket so our team can take a closer look.
 

leonep

Well-Known Member
Nov 18, 2014
234
19
68
Pescara
cPanel Access Level
Root Administrator
hello i have this problem ,
Piped logging is beneficial for servers with many domains, as it reduces the number of open files Apache requires so i not happy to disable it.
any other workaround or problem solution?
thanks