Checking httpd or apache logs for files upload status
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Checking httpd or apache logs for files upload status
I have got a ticket and the reporter wants to know if a file upload / submission on the website was successful or not after a maintenance window closed at 8 Aug 2013 16:30 EDT. They uploaded the file at 16:36.
I got these lines from the httpd's access_log file:
I have got a ticket and the reporter wants to know if a file upload / submission on the website was successful or not after a maintenance window closed at 8 Aug 2013 16:30 EDT. They uploaded the file at 16:36.
Then check the hash of the original and the uploaded file?
Quote:
Originally Posted by devUnix
In the second line what does the log in bold mean?
It's the User Agent.
Quote:
Originally Posted by devUnix
Why is the same filed blank "_" in the next line? it reports the time when the file submission was done.
No idea because I don't know the configuration. Look at what log formatting identifiers the web server uses by default.
Quote:
Originally Posted by devUnix
What do the values after the HTTP status codes mean: 200 853 as shown above?
First value is Return code, next is data sent back to client in bytes.
Quote:
Originally Posted by devUnix
Is this phrase okay:
Code:
... HTTP/1.1" 200 15115 "-" "-"
I mean, "-" and "-" are not having any text. What information those fields could be missing?
No idea if anything is actually missing. CLF / NCSA logging format says it's the referrer and user agent fields.
No idea because I don't know the configuration. Look at what log formatting identifiers the web server uses by default.
To expand upon that, open your httpd.conf and look for the LogFormat directive. You can compare what's in there to online help docs for Apache to see what each value is.
well looking at the logs one can only say the page fetched successfully, that doesnt means the file was uploaded. (Edited: After David: to depict the correct meaning):
16:36:32 : when they uploaded the data
/upload.js: the accessed page
HTTP/1.1 : the header posted using the protocol HTTP to get the response
200 : "OK" response received which means the page was fetched successfully.
8184 : Size of the whatever is posted back.
"-" : ('-' means the requested info ins not available) the first one looking for the site from where the clients reports are referring. the second one is looking for the information that client browser report about itself.
to check whether the file was uploaded correctly refer to what UnSpawn said.
If the file had uploaded completely and successfully, then it is a successful transaction in the broad sense.
If the file had only partially uploaded, then it is only a successful transaction as far as Apache is concerned. It does not mean that it truly is a successful transaction since the intended operation was not completed.
If you put your key into the ignition on your car and turn it, do you consider your car started? Probably not, you wouldn't consider it started until the engine turned over and was idling. Same thing here, just because Apache reports a successful status doesn't mean the operation was actually successful.
what does a 200 status code means : it says the page you were trying to access was successfully fetched, all i meant by the first line is this only.
while you are referring to file uploaded everytime. Please see the last line i suggested to check for the successful upload.
Quote:
Apache reports a successful status doesn't mean the operation was actually successful.
I did'nt said the operation as successful, i only referred to the page being accessed successfully, Note that doesnt means the file was uploaded.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.