Apache logs not showing correct data

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache logs not showing correct data

Postby markadewet » 01. February 2024 18:01

Hi all, I do hope someone can assist here.
I am running XAMPP 8.2.12-0-VS16 on Server 2022. All is working reasonably ok, except for when it comes to reading the access logs. I am using AWSTATS to analyze my logs and AWSTATS simply is not getting the info it needs. I specifically need itthe logs to show my domain name, but it does not when accessing my website.
In my Apache logs, when accessing my website, www.gmcomputers.co.za, this is all I see (just a small example):

196.40.100.58 - - [01/Feb/2024:18:52:01 +0200] "GET / HTTP/1.1" 302 332 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0"
196.40.100.58 - - [01/Feb/2024:18:52:01 +0200] "GET / HTTP/1.1" 200 7713
196.40.100.58 - - [01/Feb/2024:18:52:01 +0200] "GET /assets/bootstrap/css/bootstrap.min.css HTTP/1.1" 200 155585
196.40.100.58 - - [01/Feb/2024:18:52:01 +0200] "GET /assets/bootstrap/css/bootstrap-grid.min.css HTTP/1.1" 200 51452
196.40.100.58 - - [01/Feb/2024:18:52:01 +0200] "GET /assets/bootstrap/css/bootstrap-reboot.min.css HTTP/1.1" 200 4617
196.40.100.58 - - [01/Feb/2024:18:52:01 +0200] "GET /assets/parallax/jarallax.css HTTP/1.1" 200 321
196.40.100.58 - - [01/Feb/2024:18:52:01 +0200] "GET /assets/dropdown/css/style.css HTTP/1.1" 200 7945
196.40.100.58 - - [01/Feb/2024:18:52:01 +0200] "GET /assets/socicon/css/styles.css HTTP/1.1" 200 15529

My log format is as follows:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
CustomLog "logs/access.log" combined

The strange thing is when I access AWSTATS I seem to get all the info required:
192.168.0.3 - gmadmin [01/Feb/2024:11:43:18 +0200] www.gmcomputers.co.za "GET /awstats/awstats.pl?config=www.gmcomputers.co.za HTTP/1.1" 200 1088 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
The result is ONLY AWSTATS hits are displayed on the AWSTATS interface.

Can anyone please point me to where I might have made an error in my installation?
markadewet
 
Posts: 1
Joined: 01. February 2024 17:44
XAMPP version: 8.2.12-0-VS16
Operating System: Server 2022

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 203 guests