You are not logged in.

#1 2012-11-19 19:56:11

Registered: 2010-11-12
Posts: 13

Apache Logging Issues Since Converting to systemd

Since converting to systemd, apache is doing host lookups for log entries. I have verified the timing by reviewing logs: before systemd apache was logging IP's; immediately after booting into systemd for the first time, apache started resolving hostnames for the logs. I have made no changes to my apache configuration files in weeks, and haven't made changes to logging in months. Does anyone know why changing to systemd would cause issues with apache logging - and how I resolve those issues?

The relevant portions of httpd config files...

ErrorLog "/var/log/httpd/error_log"
LogLevel warn
<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

    CustomLog "/var/log/httpd/access_log" common

From extra/httpd-default.conf

HostnameLookups Off

Virtual hosts all have their logging configured like this:

<VirtualHost *:80>
    ErrorLog "/var/log/httpd/site-error_log"
    CustomLog "/var/log/httpd/site-access_log" combined


Board footer

Powered by FluxBB