Am Dienstag, 02.09.03 um 11:18 Uhr schrieb Markus Heinze:
Andreas Waaser wrote:
perl script split-logfile.pl in httpd.conf einbinden - wie geht das?
so schaut bei MacOS X der part dazu in httpd.conf ohne split-logfile aus:
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog "/private/var/log/httpd/access_log/" combined
und irgendwie muss man jetzt dort die anweisung für split-logfile einbauen
bloss die richtige schreibweise erschliesst sich mir einfach nicht.
weiss einer, wie man das tun muss?
fuege die zeile
TransferLog "| /pfad/zu/split-logfile.pl"
in der httpd.conf hinzu (vor CustomLog).
geschickter waere es vielleicht fuer jeden vhost ein Error & CustomLog anzulegen und dann taeglich mit logrotate zu zippen und wegzusichern.
mfg
-- ---------------------------------------- Markus Heinze
Internet: http://www.existand.de E-Mail : M.Heinze@existand.de Telephon: 03464/569787 Fax : 03464/569786 ----------------------------------------
danke für das beispiel, es lässt sich auch ohne fehlermeldung entsprechend einfügen, # # The following directives define some format nicknames for use with # a CustomLog directive (see below). # LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%v %h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent # # The location and format of the access logfile (Common Logfile Format). # If you do not define any access logfiles within a <VirtualHost> # container, they will be logged here. Contrariwise, if you *do* # define per-<VirtualHost> access logfiles, transactions will be # logged therein and *not* in this file. # TransferLog "| /private/var/log/httpd/split-logfile.pl" CustomLog /private/var/log/httpd/access_log "combined" bloss wird das perl-script einfach nicht ausgeführt. ich gehe davon aus dass die aufgeteilten neuen zusätzlichen logs auch in /private/var/log/httpd/ geschrieben werden müssten, bloss das bleibt davon leer.