Maintain Uploading record in squid
Hi
I have Squid Cache: Version 2.6.STABLE21, installed on RHEL5. as well as configured SARG. It provides downloading detail of squid users. but does not provide uploading detail. I want to maintain uploading record of my users.(e.g which user upload which file/data) Plz help me in this regard. |
you can tell _if_ a user has uploaded, and how much (i.e. how big the file is) but not _what_ the file is ... it's all "PUT" data.
|
Quote:
|
answer: no you can't ...
"you can tell _if_ a user has uploaded, and how much" ... "but not _what_ the file is" |
Quote:
waiting......... plz |
Quote:
if you don't have user authentication turned on this will probably work for you: awk '$6 == "PUT" {printf("%s\t%s\n", $5, $0)}' access.log | more http://wiki.squid-cache.org/SquidFaq...equest_methods PUT is for when you "upload data" ... the first parameter in access.log is the time, the second is the size of the upload. not all "PUT"'s are files being uploaded ... but you should be able to tell by the size if the file is big or not, and the URL should hopefully give you a hint as to whether or not a file has been uploaded ... "http://www.booking.com/load_times" is probably not a file upload ... "http://s3.amazonaws.com/online-documents/online_documents/2420/My-PDF.pdf" probably is. |
Quote:
I have turned on user authentication, so what to do? to check upload. waiting for your response please..... |
if you have user authentication turned on the "PUT" will be in some other field than $6 (the sixth field) ...
you could grep for PUT in the file and change the awk script to work with a different field number ... |
Quote:
Command was (awk '$7 == "PUT" {printf("%s\t%s\n", $5, $0)}' access.log | more) (awk '$8 == "PUT" {printf("%s\t%s\n", $5, $0)}' access.log | more) etc...... Still waiting...... your response. |
Quote:
http://wiki.squid-cache.org/Features/LogFormat It is possible that you don't have "method" in your log file output, if this is so then you probably need to put in in. if you are having trouble, it might be worth looking at the Log analysers at http://www.squid-cache.org/Scripts/ there are just s _few_ to choose from. We've used at least the first 2 in the list in the past. Jon |
All times are GMT -5. The time now is 05:16 PM. |