Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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


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.