PDA

View Full Version : logrotation


toki
11-02-2003, 04:28 AM
possible to integrate logrotation for day, week, month and maybe year?

and also to specify what exactly to log? maybe only user but no ip or ip in "xxx"ed style...

just an idea

Harm
11-02-2003, 04:38 AM
1) Logs rotation is something that has to be done by a script, not by the ftp daemon itself.
I know at least one that can do it.

2) Why do you want to hide users' ips in logfiles ?

EwarWoo
11-02-2003, 04:57 AM
Originally posted by Harm
2) Why do you want to hide users' ips in logfiles ?

A degree of protection for users if feds turn up on doorstep i'd assume ;)

toki
11-02-2003, 05:06 AM
LOL

ip hiding was just an example. in general for me it is interesting to have:

time, user login/logout and
time, user kb duration of ul/dl and r/w to verify whether ul or dl

(what the hell are feds *fg*)

but i am interested in the logrotation script... could you tell me plz?

Harm
11-02-2003, 06:06 AM
Read only what you're interested in then and skip other items in the logfiles.

Here is a clue about the script : :banana:

toki
11-02-2003, 06:17 AM
hm. i didnt want to install complete iobanana only to get log rotation... maybe later....

Mouton
11-02-2003, 11:31 AM
How about installing only one line of ioBanana in your .ini to have log rotation ?
You should be able to guess which one u need.

toki
11-03-2003, 04:44 AM
hm didnt know what components working standalone. but ill try.

MastaJ
01-03-2004, 10:08 AM
if you want to be extra safe...use a batch file and put it in the scheduler. for example:
_____________________________________
****LOGS = **** EXEC ..\scripts\****logs.bat
_____________________________________

then in ****logs.bat put:
__________________________
cd /d c:\your\path\to\ioftpd\logs
del ioftpd.log
del SysOp.log
del xferlog
echo none >> ioFTPD.log
_____________________

not sure if this is what you wanted...but it works..