access_log wird nicht mehr ins old verz. geschrieben

Apache, Lighttpd, nginx, Cherokee
Post Reply
jojo8897
Posts: 79
Joined: 2004-01-19 14:08
 

access_log wird nicht mehr ins old verz. geschrieben

Post by jojo8897 »

ich habe da wohl vor einiger zeit irgendwo leider was verhauen, und zwar wird seit 2 monaten die access_log der web´s auf meinem root-server nicht mehr gesplittet und ins old verzeichnis komprimiert geschrieben.

leider hab ich keinen plan woran das liegen kann.

hier ein ausschnitt aus der confixx_vhost.conf

Code: Select all

NameVirtualHost xxx.xxx.xxx
php_admin_flag safe_mode On
php_admin_value safe_mode_exec_dir /home/www/empty

UseCanonicalName Off
LogFormat "%V:#:%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"" confixx
LogFormat "%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"" confixx2
CustomLog |/root/confixx/pipelog.pl confixx
<Directory "/home/www">
<Files ~ "^.ht">
deny from all
</Files>
und die pipelog

Code: Select all

#!/usr/bin/perl
###### Confixx-Apache-PipeLog
## zum Loggen der Webzugriffe pro User
########## erstellt am Thu Oct 28 08:18:02 2004 ###
$logDir = "/var/log/httpd/confixx/domains/access";
$stdLog = "/var/log/httpd/confixx/stdlog_access";
while(<STDIN>){
  ($domain, $log) = split(/:#:/, $_);
  $domain = lc($domain);
  if(-l "$logDir/$domain"){
    open(LOG, ">>$logDir/$domain") or next;
    print LOG $log;
    close(LOG);
   }else{
    open(LOG, ">>$stdLog") or next;
    print LOG "$domain :: $log";
    close(LOG);
  }
}
wäre nett wenn mir da mal wer weiter helfen kann, die logfiles werden nämlich ganz schön groß :oops:

DANKE
Jörg

Bin mir sicher das ich das verbockt habe mit der installation von awstats, weil seit dem datum der fehler auftritt, kann es sein das in der crontab was fehlt oder so?

kann es was mit der logrotate zu tun haben ?
ich glaube ich komme der sache näher *g*

ok mit der logrotate hat es wohl nichts zu tun.

auch die access_log unter var/log/httpd ist schon 800MB groß habe gerade mal die cron-daily ausgeführt nützt nichts

es scheint an der httpd.conf zu liegen ?

Code: Select all

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%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.
#
CustomLog /var/log/httpd/access_log combined
#
# If you would like to have agent and referer logfiles, uncomment the
# following directives.
#
#CustomLog /var/log/httpd/referer_log referer
#CustomLog /var/log/httpd/agent_log agent

#
# If you prefer a single logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog /var/log/httpd/access_log combined
jojo8897
Posts: 79
Joined: 2004-01-19 14:08
 

Re: access_log wird nicht mehr ins old verz. geschrieben

Post by jojo8897 »

ein kleiner tipp wo ich suchen könnte würde mir schon weiter helfen, wie gesagt ich gehe davon aus das es was mit den configurationen zu awstats zu tun hat.

DANKE
Jörg
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: access_log wird nicht mehr ins old verz. geschrieben

Post by Joe User »

Confixx: pipelog (oder wie sich dat Teil schimpft)
System: logrotate
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
jojo8897
Posts: 79
Joined: 2004-01-19 14:08
 

Re: access_log wird nicht mehr ins old verz. geschrieben

Post by jojo8897 »

:oops: sorry das hilft mir nicht weiter

also es handelt sich um alle logs, die der einzelnen user sowie die die unter httpd gespeichert sind, alle sind sehr groß und werden seit 2 monaten nicht mehr neu angelegt und archiviert. von daher kann ich nicht genau sagen ob es sich um ein confixx oder ein systemprob handelt
ryukia
Posts: 58
Joined: 2004-07-16 14:40
Location: Karlsruhe
 

Re: access_log wird nicht mehr ins old verz. geschrieben

Post by ryukia »

Normalerweise erledigt Confixx das mit dem Aufruf des Counterscripts (confixx_counterscript.pl). Läuft der Cronjob denn noch?

Wann und bei welcher Größe rotiert wird steht in confixx_main.conf. Zumindest bei Confixx 3

Ansonsten das Counterscript mal mit force-all und debug manuell aufrufen: ./confixx_counterscript.pl -dbg -fa

Ciao
Ryukia
jojo8897
Posts: 79
Joined: 2004-01-19 14:08
 

Re: access_log wird nicht mehr ins old verz. geschrieben

Post by jojo8897 »

./confixx_counterscript.pl -dbg -fa
habe ich ausgeführt, habe confixx 2.0

hat sich aber nix geändert an den logs

in der confixx_main.conf kann ich nix finden wo steht das bei dir? müsste doch dan was von confixx log-dir stehen oder?
ryukia
Posts: 58
Joined: 2004-07-16 14:40
Location: Karlsruhe
 

Re: access_log wird nicht mehr ins old verz. geschrieben

Post by ryukia »

Schau Dir die debug-Ausgabe an, ob da was von log steht und evtl ein Fehler...

Bei Confixx2 kann ich Dir leider nicht helfen. Evtl stehen da die Daten sogar in der Datenbank drin

Bei confixx3 sind die Daten in der confixx_main.conf:

Code: Select all

# rotate logfile if greater than value (kb) after analysis
$apacheBackupSize = '10240';

# day on which logfiles will be rotated, ignoring size on this day (0=Sun, set to 8 to disable)
$apacheBackupDay = '1';

# 1: rotate logfiles in user's homedir, 0: rotate to $apacheBackupDir
$apacheBackupLocal = '1';

# keep _old_ logfiles for X days
$apacheBackupExpire = '90';
Ciao
Ryukia
Post Reply