• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Wo ist die log-datei von proftp (für Webalizer)

Schmarrnn

Newbie
suse 9.1
proftp 1.2.9

man kann sich wohl den traffic seines ftp-servers mittels "webalizer" anschauen, nicht live, aber das programm wertet wohl die log-datei des server-progs aus, damit erstellt er dann eine grafik in ner html-seite namens index.html. berichtigt mich, wenn nicht.
ich betreibe einen proftp-server, kann aber nirgends eine log-datei finden, die ich proftp zuordnen könnte. die datei config.log in meinem installationsverzeichnis von proftp isses ja wohl nicht.
wo soll ich suchen? alternativen zu webalizer?
 
Das ist vollkomen richtig.

Ich suche die log Dateien auch schon.
Ich habe bei mir XAMPP (http://www.xampp.org) istalliert.

Eine Alternative zu Webalizer fällt mir nicht ein.

Aber im Webmin kann man beim Webalizer ein Intervall festlegen bzw. einen Zeitpunkt, wo der die logs untersucht und eine Statistik erstellt.
 
OP
S

Schmarrnn

Newbie
re: benutzt du auch proftp? vielleicht schreibt proftp gar keine log-datei, solange man es ihm nicht sagt, man muss ja auch sonst keine einstellungen in proftpd.conf machen. da sollte nämlich so was stehen, wie in
vsftp.conf (vsftp:very secure ftp):

# Log Settings
#
# Log to the syslog daemon instead of using an logfile.
#
syslog_enable=YES
#
# Uncomment this to log all FTP requests and responses.
#
#log_ftp_protocol=NO
#
# Activate logging of uploads/downloads.
#
#xferlog_enable=NO
#
# You may override where the log file goes if you like. The default is shown
# below.
#
#vsftpd_log_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note: This disables the normal logging unless you enable dual_log_enable below.
#
#xferlog_std_format=YES
#
# You may override where the log file goes if you like. The default is shown
# below.
#
#xferlog_file=/var/log/xferlog
#
# Enable this to have booth logfiles. Standard xferlog and vsftpd's own style log.
#
#dual_log_enable=YES
#
# Uncomment this to enable session status information in the system process listing.
#
#setproctitle_enable=YES

damit könnte man was machen, nur kann mir keiner genau sagen, wie man vsftp zum laufen kriegt.
 
Ich benutze auch ProFTPd und im Konfig File steht nix von nem log :(

obwohl es ja eines geben müsste.
Ich mach mich nochmal auf die Suche.

EDIT: Suche war beim bereitsteller von XAMPP erfolgreich :D

Im Forum: http://www.apachefriends.org/f/viewtopic.php?t=2390
 
OP
S

Schmarrnn

Newbie
ok, bin ein ganzes stück weiter gekommen.
auf der seite http://www.proftpd.org/docs/directives/linked/config_ref_TransferLog.html wird beschrieben, daß der transfer in der log-datei /var/log/xferlog gespeichert wird. in der datei sind auch durchaus richtige daten (hab den host von nem kollegen erkannt), aber: wenn ich im installationsverzeichnis von webalizer eingebe: "./webalizer /var/log/xferlog" , schreibt er immer:
"Warning: Truncating oversized username"
"Skipping bad record (1-xx)"
"No valid records found"

ich hab ne nette eMail an den autor von webalizer geschrieben, erfahrungsgemäß antworten autoren auch nach einiger zeit, ich poste dann an diese stelle...
 

bis11

Newbie
Falls es noch von Bedeutung ist, erstellt euch eine extra webalizer.conf, wo ihr den Pfad zu dem access.log von ProFTP - Server eintragt. Danach startet einfach den Webalizer folgendermaßen :

Code:
/usr/bin/webalizer -c /etc/webalizer-ftp.conf

So funktioniert es unter meine Konfiguration. Sollte euer ProFTP-Server noch nichts mitloggen, dann macht noch folgende Einträge in der proftpd.conf :

Code:
#
# Logging options
#
TransferLog                     /var/log/proftpd/xferlog.legacy

#
# Some loggings formats
#
LogFormat                       default "%h %l %u %t \"%r\" %s %b"
LogFormat                       auth "%v [%P] %h %t \"%r\" %s"
LogFormat                       write "%h %l %u %t \"%r\" %s %b"

#
# Logging file/dir access
#
ExtendedLog                     /var/log/proftpd/access.log WRITE,READ write

#
# Record all logins
#
ExtendedLog                     /var/log/proftpd/auth.log AUTH auth

Abspeichern und dann den ProFTP-Server einmal neu starten. Danach sollte es funktionieren mit dem Webalizer.
 
Oben