View previous topic :: View next topic |
Author |
Message |
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Fri Dec 24, 2004 1:50 am Post subject: Where does Pure-FTPd Keep Logs? |
|
|
Does Pure-FTPd keep logs of who transferred what, and when? I'm interested in reviewing last night's activity, if it actually recorded anything. Where should I look? I did nothing special on startup, nor do I see anything about logging in the Pure-FTPd config file. Any ideas?
Happy Holidays! _________________ s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi
Don't blame me. I didn't vote for him.
http://john.simplykiwi.com |
|
Back to top |
|
|
underrun n00b
Joined: 24 Dec 2004 Posts: 3
|
Posted: Fri Dec 24, 2004 2:42 am Post subject: |
|
|
I pretty sure the uderguide @ www.proftdp.org will tell you what you need to hear.
Merry Christmas _________________ ____________
underrun |
|
Back to top |
|
|
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Fri Dec 24, 2004 2:46 am Post subject: |
|
|
underrun, thanks, but I think pure-ftpd is different than proftpd? _________________ s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi
Don't blame me. I didn't vote for him.
http://john.simplykiwi.com |
|
Back to top |
|
|
yain n00b
Joined: 15 Dec 2004 Posts: 16
|
Posted: Fri Dec 24, 2004 4:01 am Post subject: |
|
|
default location is
/var/log/ftpd/ |
|
Back to top |
|
|
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Fri Dec 24, 2004 5:42 am Post subject: |
|
|
yain wrote: | default location is
/var/log/ftpd/ |
Hm, no directory there. I don't see anything related to FTP in /var/log/. Is it something I have to manually enable?
Edit: Okay, so man pure-ftpd says that the syslog facility defaults to "ftp" if the -f option is not passed at runtime (which it wasn't). So, ftp facility, where do I find that?
...back to reading man pages. _________________ s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi
Don't blame me. I didn't vote for him.
http://john.simplykiwi.com |
|
Back to top |
|
|
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Fri Dec 24, 2004 6:03 am Post subject: |
|
|
Alright, so apparently the Pure-FTPd default is to log to the "ftp" facility, per the man page. I use sysklogd, whose configuration file doesn't mention the "ftp" facility, so does that mean it gets ignored?
Is there a catch-all for unknown/unexpected facilities? _________________ s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi
Don't blame me. I didn't vote for him.
http://john.simplykiwi.com |
|
Back to top |
|
|
Apache4857 n00b
Joined: 23 Jun 2004 Posts: 20
|
Posted: Fri Dec 24, 2004 4:23 pm Post subject: check general log |
|
|
I'd check in /var/log/messages or /var/log/syslog. My pure-ftpd server logs to one or the other, I can't remember which right now. You can grep for ftp in the log file. |
|
Back to top |
|
|
Parasietje Apprentice
Joined: 25 Jan 2004 Posts: 194
|
Posted: Sat Dec 25, 2004 2:43 pm Post subject: |
|
|
/var/log/xferlog is the standard logfile for ftp-transfers. When using sysklogd, you could look into /etc/syslog.conf. There, ftp facility logs are discarded, but this can easily be changed. |
|
Back to top |
|
|
OdinsDream Veteran
Joined: 01 Jun 2002 Posts: 1057
|
Posted: Sun Dec 26, 2004 1:37 am Post subject: |
|
|
There it is! Found it in /var/log/messages, as well as syslog, which appears to be the same thing. Ok, so to split the FTP-related stuff in the future to a separate file, I'd add:
Code: | ftp.* -/var/log/ftp.log |
...to the /etc/syslog.conf file? As far as I can tell, that should take any ftp-related stuff and put it in ftp.log, which will be created if necessary, yes?
Thanks everybody! _________________ s/(?<!gnu\/)linux(?! kernel)/GNU\/Linux/gi
Don't blame me. I didn't vote for him.
http://john.simplykiwi.com |
|
Back to top |
|
|
davidsb Tux's lil' helper
Joined: 08 Dec 2002 Posts: 146 Location: Lisbon, Portugal
|
|
Back to top |
|
|
davidsb Tux's lil' helper
Joined: 08 Dec 2002 Posts: 146 Location: Lisbon, Portugal
|
|
Back to top |
|
|
|