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.

I am trying to figure out a way to in real time see people downloading files to ensure that the download from that person is successful. I cant seem to get the search string right to find what i need. Any help is appreciated!

I do have some bash scripts i created to real-time monitor my HTTP login, Mail, SSH, and a couple other things along with port connections and load.

share|improve this question
add comment

2 Answers

Add %X to you log config.

X = connection aborted before the response completed.
+ = connection may be kept alive after the response is sent.
- = connection will be closed after the response is sent.

Also take a look at this module http://httpd.apache.org/docs/2.2/mod/mod_logio.html

This module provides the logging of input and output number of bytes received/sent per request. The numbers reflect the actual bytes as received on the network, which then takes into account the headers and bodies of requests and responses. The counting is done before SSL/TLS on input and after SSL/TLS on output, so the numbers will correctly reflect any changes made by encryption.

share|improve this answer
    
ill give it a try, thanks! –  user160246 Aug 9 '13 at 18:08
    
already had that mod installed and loaded, tried it, that will work for me, thanks so much! –  user160246 Aug 9 '13 at 18:38
add comment

It's going to be very difficult to (on the server) check if somebody successfully downloaded a file.

I imagine if this is going to work you may need to program the download in such a way that it streams the data and do checks along the way. This does seem difficult in the end as getting access to the downloaded file (to verify it) could be troublesome and raise security concerns.

It would be easier to ask the users to do an md5 checksum. After the user downloads the file they can do the following in terminal:

user$ md5 test-file.txt 
MD5 (test-file.txt) = d8e8fca2dc0f896fd7cb4cb0031ba249

This is common practice and you can list the md5 on your site so that users can manually verify the download.

Depending on what you're trying to achieve you may be able to develop something on the server that does the md5 on the clients downloaded file for you.

share|improve this answer
    
i figured as much, but thought i'd ask! –  user160246 Aug 9 '13 at 18:08
add comment

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.