Just wondering , is there a way to check upload content or any data related to uploads using squid logs ? Any plugin or enhancement? any other viable option. grateful for any advice . Thanks..
Just wondering , is there a way to check upload content or any data related to uploads using squid logs ? Any plugin or enhancement? any other viable option. grateful for any advice . Thanks..
File uploads are just POST requests, and Squid logs the request methods used by default :
So a command like
grep POST /var/log/squid/access.log
should give you all the POST requests, however that will also include a lot of requests that aren't file uploads, an example here :You could try filtering by request body size to get a better log, but without modification to Squid's source there is no way to log the request bodies, so you'll have a hard time getting the actual uploaded files.
Maybe look into ICAP and create a program that responds to REQMOD and logs the request body before giving the request back to Squid ?