Tomcat Access Log to display only HTTP Post method
<p>For the application deployed on tomcat, is it possible to get the access logs for only POST method.Currently it displays the logs for both POST and GET.</p>

<p>In the valve component, I see %m attribute configured which prints both the methods (GET and POST).</p>

<p>Is there any configuration with which we can just display the POST requests.</p>

<p>Configuration in server.xml</p>

<pre><code> &lt;Valve className="org.apache.catalina.valves.AccessLogValve"  attribute directory="logs"
           prefix="localhost_access_log." suffix=".txt"
           pattern="%h %l %u %t &amp;quot;%r&amp;quot; %s %b" /&gt;
</code></pre>