New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement LogFormat variable for data transfer average speed #535
Comments
Average over what unit of time? For the overall transfer? If for the entire transfer, that can easily be computed, by a log post-processor, from the total number of bytes ( |
Yes, for the entire transfer. I find it useful for debugging purposes and it seems like most other FTP server software out there supports this functionality, so I'm sure others would appreciate it as well. |
What other FTP servers have you seen do this, and how? I admit I don't often see just what other features other FTP servers have... |
Pure-FTPd and vsftpd both have this functionality in their logs by default. A quick look at the vsftpd source code shows that they do it like you've described above, taking the transfer size and transfer time. Here's an example of what vsftpd default transfer log looks like: Fri Jul 14 06:26:14 2017 [pid 30373] [Username] OK DOWNLOAD: Client "5.5.5.5", "/Folder/Test.file", 537563631 bytes, 6118.22Kbyte/sec |
Seems like a reasonable request. This will not be added to the fixed This will be (roughly) equivalent to "%{file-size}/%{transfer-millisecs}", adjusted to use units of KB/s rather than B/ms. |
…r logging the average transfer speed for a given data transfer.
…r logging the average transfer speed for a given data transfer.
Issue #535: Implement a `LogFormat` variable, `%{transfer-speed}`, fo…
Implemented in master now. Thanks! |
Hello,
I would like to request an additional variable for mod_log that would show the average transfer speed.
Maybe a format like KB/s, MB/s, etc.
Thanks
The text was updated successfully, but these errors were encountered: