Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What could be the reason, that the AccessLogValve of tomcat is not writing the complete lines whenever the buffer is flushed? The last line always looks like this:

nnn.nnn.nnn.nnn   [31/Jan/2013:13:34:17 +0100]    E2C56971426BA5A3D81E01790A22B720        "GET /Foo/Bar.do?para

(I replaced the ip and the actual request url)

With the next buffer flush, that line is complete again but the last one is not.

We have several 10 servers with the identical configuration, but only one of them has that behaviour.

Used software:

  • Tomcat 7.0.28.0
  • Oracle JVM 1.7.0_03-b21
  • Debian 7.0 (wheezy)

This is the AccessLogValve Configuration:

<Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs" prefix="localhost_access_log." suffix=".txt" 
pattern="%h&#9;%t&#9;%S&#9;&quot;%r&quot;&#9;&quot;%{Referer}i&quot;&#9;%s&#9;%b&#9;%D"/>

Is there any setting to control that behaviour?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.