how to take logs report of vsftpd(ftp) daily or 2 days

Hi: I have configured vsftpd(ftp) in centos 5. I want that how many files upload or downloaded by specific users consolidated report through mail daily basis.

Please help me to configure step by step because I have not much Idea about this.

Regards
Sanjeev jha
Sanjeev jhaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nociSoftware EngineerCommented:
I'll first suggest some high-level after that details can be filled in.:
Try to lookup on config. file settings for the issues at hand, and for the products mentioned.

How about logging through the syslog service (done in vsftpd)
Then use the logservice of choice to capture the records and put them into a file or database.
(sysklogd, syslog-ng, metalog etc.)
For files:
use the logrotate service the create daily new logfiles. (this will happen on specific times)..,
For database run the appropriate queries at the right time for reporting.

So you can schedule a separate job through cron for files & databases.
The logrotate service also can start jobs for you as post-rotate.
There is also tooling that can report on all kind of issues with logs , like splunk. But that is too  much tooling for such a small job.

When all is new start with: sysklogd, logrotate and go from there.
0
gheistCommented:
awstats offers ftp log reading script.
0
Sanjeev jhaAuthor Commented:
Thanks for your reply. let me go through and check it.
0
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

gheistCommented:
You can install awstats from fedora epel. No need to hurt your fingers making manual install.
0
Sanjeev jhaAuthor Commented:
Will it work in Centos, if yes than how it can be install in centos and any configurations required for this.
0
gheistCommented:
http://www.awstats.org/docs/awstats_faq.html#FTP - config example
You need to set up ftp log converter as log source. it means creating NEW awstats*.conf in /etc/awstats
Also make sure you have at least month+week of logs intact so that full stats are generated.
obviously vsftpd needs to generate xferlog.
.conf files will be processed nightly
0
Sanjeev jhaAuthor Commented:
Thanks for your support, First i would like to implement in test environment than only apply it in our live FTP environment. I will update you once installation and configuration part will be taken care of.

Thank you very much for your support.
0
gheistCommented:
It does not actively interfere with your system. You can make log name filter to pick up only aleady rotated logs e.g. from yesterday.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Sanjeev jhaAuthor Commented:
Thanks for your support. It help me lot and still working on this.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.