Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a custom log line format for Apache logs which are analyzed.

CustomLog "|/usr/sbin/rotatelogs -l /mnt/var/log/apache2/access-%Y%m%d%H%M%S.log 900" "%a %{%s}t \"%r\""

However, some log lines are mysteriously shortened with "..." for some reason, but how can this be? The shortest length line discovered where this occurs is 317 chars while the longest line is way over 2000 chars.

"GET /exposure?sg=&ap=0x0&fv=WIN%2010,0,22,87&si=IH95VDUAVLJ0& HTTP/1.1"

share|improve this question

See any of these questions.

GET URI's in general shouldn't be longer than 255 character, if you need to send more info than that, use POST. Using longer URIs causes all kinds of havoc, including ellipses in the logs, proxy problems, and in extreme cases 414 errors.

share|improve this answer
It is probably not his website which is generating those URLs. I have often hackers who try to get into my website with such long URLs. It would be extremely helpful if I could see the full URL in order to see what kind of bug they try to find. – Raffael Luthiger Jun 7 '10 at 16:57
Regardless of who is generating the request, he asked how a log entry could be generated with a "...", and I answered. – Chris S Jun 7 '10 at 18:25

How do you know Apache is truncating the URLs? Are you seeing these in the middle of a user session? The simpler answer might be that someone e-mails a too-long URL to somebody else, and it gets rendered with an ellipsis, and the user cuts-and-pastes the URL with the ellipsis . . .

But yes, I'm with Chris on this one: the real problem is that your URLs are too long, and something--probably not Apache--is truncating them. The correct solution would be to manage your software to support shorter URLs that wouldn't beg for weird truncation issues.

share|improve this answer

Your Answer


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.