Poundのログを設定する

下記に記載したファイルを設定してsyslogとpoundを再起動する。


/etc/pound/pound.cfg

User "nobody"
Group "nobody"
RootJail "/usr/share/pound"
Control "/var/run/pound/ctl_socket"
Daemon 1
Alive 15
LogFacility local5

# Main listening ports
ListenHTTP
    Address 0.0.0.0
    Port    80
    xHTTP   1
    Client  300
    TimeOut 310
End
ListenHTTPS
    Address 0.0.0.0
    Port    443
    Cert    "/etc/pki/pound/pound.pem"
    Ciphers "ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL"
    xHTTP   1
End

# Catch-all server(s)
Service
    BackEnd
        Address 192.168.10.211
        Port    80
    End
    BackEnd
        Address 192.168.10.212
        Port    80
    End
    Session
        Type    Cookie
        ID      "JSESSIONID"
        TTL     1800
    End
End

/etc/syslog.conf

*.info;mail.none;authpriv.none;cron.none;local5.none            /var/log/messages
 →;local5.noneを追加

#pound
local5.*                                                /var/log/pound.log
 →末尾に追加

/etc/logrotate.d/syslog

/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron /var/log/pound.log {
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
        /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
}