Apache server records all incoming requests and all requests processed to a log file. The format of the access log is highly configurable. The location and content of the access log are controlled by the CustomLog directive. Default apache access log file location:
RHEL / Red Hat / CentOS / Fedora Linux Apache access file location –
/var/log/httpd/access_log
Debian / Ubuntu Linux Apache access log file location –
/var/log/apache2/access.log
FreeBSD Apache access log file location –
/var/log/httpd-access.log
To find exact apache log file location, you can use grep command:
# grep CustomLog /usr/local/etc/apache22/httpd.conf
# grep CustomLog /etc/apache2/apache2.conf
# grep CustomLog /etc/httpd/conf/httpd.conf
Sample output:
# a CustomLog directive (see below).
#CustomLog "/var/log/httpd-access.log" common
CustomLog "/var/log/httpd-access.log" combined
/var/log
, but some systems have them elsewhere.