Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any way to measure httpd/ftpd and sshd trafic per user basis.

share|improve this question

2 Answers 2

The httpd server keeps a log which includes user ID (if basic auth is used) and bytes sent. The ftpd should have something similar but you may have to enable a detailed logging. I'm not sure about sshd. It may or may not have a detailed logging option.

share|improve this answer

The Apache::Traffic server module seems to offer a simple way to log hits and bytes in/out per user. you can just install that module and then run the traffic script to generate reports.

I don't see an obvious way to measure ssh or ftp traffic, other than the previous suggestion of increasing the logging detail and processing the logs.

There was a per-user IP accounting mechanism for the linux kernel called ipacct but it seems way out of date now.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.