there is some weird duplicity in logs when you run proftpd as systemd service, date, time, hostname, service[pid], date is in different format Name : proftpd Version : 1.3.6b Release : 3.el8 Architecture : x86_64 systemctl start proftpd.service journalctl -u proftpd.service -l Actual results: Mar 02 08:55:28 hostname proftpd[2839]: 2020-03-02 08:55:28,055 hostname proftpd[2839]: processing configuration directory '/etc/proftpd/conf.d' Mar 02 08:55:28 hostname proftpd[2839]: 2020-03-02 08:55:28,064 hostname proftpd[2839] 93.185.100.237: ProFTPD 1.3.6b (maint) (built Tue Feb 4 2020 20:24:04 UTC) standalone mode STARTUP Expected results: Mar 02 08:55:28 hostname proftpd[2839]: processing configuration directory '/etc/proftpd/conf.d' Mar 02 08:55:28 hostname proftpd[2839]: 93.185.100.237: ProFTPD 1.3.6b (maint) (built Tue Feb 4 2020 20:24:04 UTC) standalone mode STARTUP Additional info: even SystemLog doesn't work, you are not able to redirect output to files, when you run proftpd from command line it's all working
I have raised this upstream: https://github.com/proftpd/proftpd/issues/1002
Upstream is working this here if you would like to offer your opinion: https://github.com/proftpd/proftpd/pull/1009 There are currently options to drop the duplicate hostname and timestamp from the logs, but the pid that proftpd logs is that of the sub-process serving a particular client, whilst systemd logs the pid of the master process, which is not the same. So the logging would look like this: Mar 02 08:55:28 hostname proftpd[2839]: proftpd[2839]: processing configuration directory '/etc/proftpd/conf.d' Mar 02 08:55:28 hostname proftpd[2839]: proftpd[2839]: 93.185.100.237: ProFTPD 1.3.6b (maint) (built Tue Feb 4 2020 20:24:04 UTC) standalone mode STARTUP May 04 14:05:17 hostname proftpd[2839]: proftpd[9999] 93.185.100.237 (client.example.com): FTP session opened. May 04 14:05:24 hostname proftpd[2839]: proftpd[9999] 93.185.100.237 (client.example.com): USER anybody: Login successful. May 04 14:05:28 hostname proftpd[2839]: proftpd[9999] 93.185.100.237 (client.example.com): FTP session closed.
FEDORA-EPEL-2020-2b2407abce has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-2b2407abce
FEDORA-EPEL-2020-2b2407abce has been pushed to the Fedora EPEL 8 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2020-2b2407abce See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
Please note: I will not be pushing this update to stable unless I get some feedback on it.
Hello, sorry for my late reponse, already gave up ... ;-) this patch works, fail2ban default filter proftpd.conf works with it perfectly thanks for your help -- Pavel
FEDORA-EPEL-2020-2b2407abce has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report.