I'd like to log post parameters/data of all/some http requests - Therefore I 
tried 
               <Valve 
className="org.apache.catalina.valves.ExtendedAccessLogValve"
                prefix="localhost_extended_access_log." suffix=".log"
                pattern="cs-uri cs-uri-query time-taken x-P()" 
directory="${jboss.server.home.dir}/log" 
                resolveHosts="false" />
in my server.xml, but the last pattern string "x-P()" always produced "-" in 
the log (instead of the only one post parameter that was present in the http 
post request)

The http post requests I want to log is:
[snip]
POST https://rzs13:1443/webAntWeb/WebAntrag?serviceId=Echo.Synchronize

POST data:
<client-message xmlns="https://www.nextapp.com/products/echo2/climsg"; 
type="initialize"><message-part processor="EchoClientAnalyzer"><property 
type="text" name="navigatorAppName" value="Netscape"/><property type="text" 
name="navigatorAppVersion" value="5.0 (Windows; de)"/><property type="text" 
name="navigatorAppCodeName" value="Mozilla"/><property type="boolean" 
name="navigatorCookieEnabled" value="true"/><property type="boolean" 
name="navigatorJavaEnabled" value="true"/><property type="text" 
name="navigatorLanguage" value="de"/><property type="text" 
name="navigatorPlatform" value="Win32"/><property type="text" 
name="navigatorUserAgent" value="Mozilla/5.0 (Windows; U; Windows NT 5.1; de; 
rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11"/><property type="integer" 
name="screenWidth" value="1280"/><property type="integer" name="screenHeight" 
value="1024"/><property type="integer" name="screenColorDepth" 
value="32"/><property type="integer" name="utcOffset" value="120"/></message-par
 t></client-message>

Cookie Data:
JSESSIONID=05244CD287E4E54542429BC26B4A4EF4.jbschulung

Request Headers:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.11) 
Gecko/20071127 Firefox/2.0.0.11
Host: rzs13:1443
Accept-Encoding: gzip,deflate
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Pragma: no-cache
Content-Type: text/xml
Cache-Control: no-cache
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Connection: keep-alive
Content-Length: 1009
Referer: https://rzs13:1443/webAntWeb/NewSession
Keep-Alive: 300
[/snip]

How do I have to change my pattern in order to get the post data printed to the 
log?

Which other possibilities exist to log post parameters/data of http post 
requests?


many thanks & kind regards,
Markus
-- 
GMX Download-Spiele: Preizsturz! Alle Puzzle-Spiele Deluxe über 60% billiger.
http://games.entertainment.gmx.net/de/entertainment/games/download/puzzle/index.html

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to