LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Proftpd - excluding IP's from being logged (https://www.linuxquestions.org/questions/linux-software-2/proftpd-excluding-ips-from-being-logged-111989/)

Bluesuperman 11-03-2003 04:17 PM

Proftpd - excluding IP's from being logged
 
Hello,

I have a simple question -- but can not find the answer. I want to be able to exclude a IP address from being logged by the proftpd daemon.

We have a production server that makes a ftp connection to a FTP server every 10 seconds. ( NOT MY DOING).

On the FTP server (Running Proftpd) the log file is about 150M after one week, this is because of all the connections made by the other production server. I have adjusted the logging defaults on the system so they roll over nightly instead of weekly.

But is there a proftpd option to exlcude this one IP address from being logged at all. This would greatly help.

Thanks.

Michael

DirtDart 11-04-2003 10:50 AM

As far as I can see, no there wouldn't be a way.

You could, however, write a small shell script to remove the lines in the log that come from that IP address, then run it nightly.

#!/bin/bash
#
grep -v <ip address> nameoflogfile > .tmplogfile
cat .tmplogfile > nameoflogfile

Bluesuperman 11-04-2003 11:31 AM

Thanks -- I was hoping I would not have to do that. :)


All times are GMT -5. The time now is 05:44 AM.