top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Tomcat: %F in AccessLogValve

+1 vote
315 views

I'm trying to use the %F in the AccessLogValve but all I'm getting in the logs is the string: "???F???"

This is the configuration in server.xml

unpackWARs="true" autoDeploy="true">
prefix="localhostaccesslog." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b ttp: %D ttc: %F" />

And I'm using tomcat v 7.0.39, any ideas?

posted Dec 5, 2013 by Jai Prakash

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
Seems like this option is not available in your version. Have you tried the latest release?

1 Answer

+1 vote

According to [1], the "%F" pattern is available from Tomcat 7.0.42 onwards.

[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=55102

answer Dec 5, 2013 by Naveena Garg
Similar Questions
0 votes

We are using Tomcat 6.x version and we need to implement the following headers in our environment.

Headers:
1) Strict-Transport-Security
2) Content-Security-Policy
3) Public-Key-Pins
4) X-Frame-Options
5) X-XSS-Protection
6) X-Content-Type-Options
7) X-Robots-Tag

When I checked the Tomcat 6 version webpage (https://tomcat.apache.org/tomcat-6.0-doc/config/filter.html), I don't see any filters that implement any these headers. Some of them are available in Tomcat 7 version webpage (https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html), but we cannot upgrade to Tomcat 7.x version due to some constraints.

Can you kindly guide me how to implement these headers in Tomcat 6.x version. All your comments on this topic are welcome.

0 votes

It's a little bit frustrating to configure Tomcat 8.5.8 with log4j2.

I put the following jars in $CATALINA_HOME/lib
log4j 2 core (log4j-core-2.6.2.jar)
log4j 2 api (log4j-api-2.6.2.jar)

Delete the file $CATALINA_HOME/conf/logging.properties
Put the new log4j 2 config file (log4j2.xml) in $CATALINA_HOME/lib

No errors but the created catalina.out file is empty and the console layout doesn't change, What else to check or change?

0 votes

I am using Tomcat version 7.0.63.
I have registered the dbconnection pool with MBeanServer.
Is there a way to make those methods hot setting? What I mean by this is, for example if I change statement cache size in the jconsole, it should take effect immediately.

Any help is greatly appreciated.

...