Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vsftp log files - help needed

Status
Not open for further replies.

tookawhile

IS-IT--Management
Aug 12, 2005
242
GB
I've configured vsftp as a ftp server and all works fine.

One thing I need to sort out is the vsftp log files, by default they rotate monthly so you only ever have 1 months worth of logs, I need to keep monthly logs for 1 year - I'm pretty new to Linux so I'm looking for some help, the following didn't seem to work too well

missingok
monthly
rotate 12
notifempty
create 600 root root

I want monthly log files, rotated 12 times ( for 1 years worth) - is the above correct?

Ideally I would like to use the 'copy' option to copy to another directory, to I just add something like 'copy /var/log/vsftpd.log' ?

Thanks
 
The 'copy' option is not for copying to another directory, it just means that will not truncate the original file, i.e. it is just taking a copy rather than rotating it.

You haven't actually specified which file it will be rotating, a typical syntax would be something like:

[tt]missingok
/var/log/vsftpd.log {
monthly
rotate 12
notifempty
create 600 root root
}[/tt]

Otherwise I can't see any problems with the options you've chosen. You will end up with a /var/log/vsftpd.log.1 log for the previous month, vsftpd.log.2 for the month before that, and so on.


Annihilannic.
 
Thanks for the info - it is nice to know I'm on the right track.

I did specify the file, just slipped up when copy/pasting into this post - I think I have got myself confused, I initially tried another config and it didn't work out, but I forgot to delete the files, I think it is working Ok - but thanks for checking for me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top