ispCP - Board - Support
No log in ProFTPd 1.3 ?? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: No log in ProFTPd 1.3 ?? (/thread-756.html)

Pages: 1 2 3


No log in ProFTPd 1.3 ?? - BeNe - 06-06-2007 09:12 PM

Hello,

i checked the ticket #330 Traffic usage & Disk usage --> 0 (http://www.isp-control.net/ispcp/ticket/330)

The FTP Traffic is still "0".
I saw that there is no TransferLog set in the config for Proftpd 1.3
Code:
<Global>
  RootLogin                             off
  # proFTPd >= 1.3: change log dirs to /var/log/proftpd
  TransferLog                   /var/log/proftpd/
  ExtendedLog                   /var/log/proftpd/ftp_traff.log read,write traff
  PathDenyFilter                "\.quota$"
</Global>

But in the Version for 1.2 is one (xferlog)

Code:
<Global>
  RootLogin                             off
  # proFTPd >= 1.3: change log dirs to /var/log/proftpd
  TransferLog                   /var/log/xferlog
  ExtendedLog                   /var/log/ftp_traff.log read,write traff
  PathDenyFilter                "\.quota$"
</Global>

Perhaps this could be the Problem, that there is no Traffic on FTP ?!

Greez BeNe


RE: No log in ProFTPd 1.3 ?? - joximu - 06-06-2007 11:37 PM

This is possible.

Well the traffic is recorded but maybe the script does not look in the right place...

BTW: in the original (debian) proftp.conf we have theese two lines:

TransferLog /var/log/proftpd/xferlog
SystemLog /var/log/proftpd/proftpd.log

But my files haven't changed since I installed ispcp (except of ftp_traff.log)...

/Joximu


RE: No log in ProFTPd 1.3 ?? - BeNe - 06-06-2007 11:50 PM

Mhhh...
I added SSL in ProFTPD and set a own Log for SSL.
There are some entry´s in it.

After set "xferlog" in the proftpd.conf i have also a content in it

Code:
/var/log/proftpd# ls -l
insgesamt 16
-rw-r----- 1 root adm     0 2007-03-01 05:52 controls.log.0
-rw-r----- 1 root adm     0 2007-03-01 05:52 controls.log.new
-rw------- 1 root root 5375 2007-06-06 10:27 ftp_ssl.log
-rw-r--r-- 1 root root  206 2007-06-06 10:29 ftp_traff.log
-rw-r----- 1 root adm     0 2007-03-01 05:52 proftpd.log.0
-rw-r----- 1 root adm     0 2007-03-01 05:52 proftpd.log.new
-rw-r--r-- 1 root root  925 2007-06-06 10:29 xferlog
-rw-r----- 1 root adm     0 2007-03-01 05:52 xferlog.0
-rw-r----- 1 root adm     0 2007-03-01 05:52 xferlog.new
-rw-r--r-- 1 root root    0 2007-03-01 05:52 xferreport
-rw-r----- 1 root adm     0 2007-03-01 05:52 xferreport.0
-rw-r----- 1 root adm     0 2007-03-01 05:52 xferreport.new



RE: No log in ProFTPd 1.3 ?? - joximu - 06-07-2007 06:26 PM

You're right.

At least
TransferLog /var/log/proftpd/xferlog

should be there and I'd also suggest to put
SystemLog /var/log/proftpd/proftpd.log
in the config (outside of [global] - otherwise proftpd won't load...)

Ticket?


RE: No log in ProFTPd 1.3 ?? - joximu - 06-07-2007 06:30 PM

Yes! Ticket
http://www.isp-control.net/ispcp/ticket/373


RE: No log in ProFTPd 1.3 ?? - BeNe - 06-08-2007 12:28 AM

Fine - thank you! Smile


RE: No log in ProFTPd 1.3 ?? - RatS - 06-08-2007 08:39 AM

fixed


RE: No log in ProFTPd 1.3 ?? - joximu - 06-08-2007 09:37 AM

Thank you RatS


RE: No log in ProFTPd 1.3 ?? - BeNe - 06-08-2007 03:35 PM

I will test it today...


RE: No log in ProFTPd 1.3 ?? - BeNe - 06-08-2007 04:36 PM

So, the log is now there and i have a conent in it:
Code:
/var/log/proftpd# ls -l
insgesamt 8
-rw-r----- 1 root adm    0 2007-03-01 05:52 controls.log.0
-rw-r----- 1 root adm    0 2007-03-01 05:52 controls.log.new
-rw-r--r-- 1 root root  90 2007-06-08 05:58 ftp_traff.log
-rw-r----- 1 root adm    0 2007-03-01 05:52 proftpd.log.0
-rw-r----- 1 root adm    0 2007-03-01 05:52 proftpd.log.new
-rw-r--r-- 1 root root 456 2007-06-08 05:58 xferlog
-rw-r----- 1 root adm    0 2007-03-01 05:52 xferlog.0
-rw-r----- 1 root adm    0 2007-03-01 05:52 xferlog.new
-rw-r--r-- 1 root root   0 2007-03-01 05:52 xferreport
-rw-r----- 1 root adm    0 2007-03-01 05:52 xferreport.0
-rw-r----- 1 root adm    0 2007-03-01 05:52 xferreport.new

Here is the ftp_traf.log
Code:
cat ftp_traff.log
1323950 bene@mydomain.de
1718634 bene@mydomain.de
4366336 bene@mydomain.de

And the xferlog:
Code:
cat xferlog
Fri Jun  8 05:58:14 2007 5 217.243.XXX.XXX 1323950 /var/www/virtual/mydomain.de/htdocs/Abfrage3.xls b _ i r bene@mydomain.de ftp 0 * c
Fri Jun  8 05:58:23 2007 7 217.243.XXX.XXX 1718634 /var/www/virtual/mydomain.de/htdocs/EscaladeUG7000-122003.pdf b _ i r bene@mydomain.de ftp 0 * c
Fri Jun  8 05:58:50 2007 18 217.243.XXX.XXX 4366336 /var/www/virtual/mydomain.de/htdocs/Kundenstatistik.mdb b _ i r bene@mydomain.de ftp 0 * c

But FTP is in the Domainstistic still "0".Maybe the wrong logfiles or path is used.
Since Proftpd 1.3 the log is under "/var/log/proftpd/" and not under "/var/log/".