Question
capitalone
US
Last activity: 10 May 2017 21:55 EDT
how to enable "RequestDumperFilter" in tomcat
i would like to get the raw request and response using request dump filter in tomcat.
can anyone help me how to achieve this. i do not see logging.properties files under conf folder.
Thanks
sethu
***Moderator Edit: Vidyaranjan | Updated Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
what is your tomcat version? I can see logging.properties file under /conf for both tomcat 8/9 of my local env.
capitalone
US
thanks kevin for the reply.
i have tomcat Proprietary information hidden, i do not see logging.properties files under /conf.
any suggestions how to add it or can i add it just like that?
Pegasystems Inc.
US
Can you create one yourself if not there, according to tomcat doc: https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#Request_Dumper_Filter, the location is correct.
capitalone
US
i tried making one up, but prweb fails to start. not sure what is missing.
Pegasystems Inc.
US
can you attach the tomcat and pega logs?
capitalone
US
sorry for the delay, the aws instance went down. once i reproduce the issue, i will upload the log file. thanks.
capitalone
US
hi kevin:
are you expecting the localhost logs? or request dumper logs?
if it is request dumper, i need to set up one. i need some assistance.
i am skeptical that Can i add log4j or any other properties file inside the pegs folders..
Pegasystems Inc.
US
I thought your original question is purely about tomcat, did not mention pega at all. What exactly are your requirements?
capitalone
US
we are running pega application in tomcat. During our load testing, the login fails with the below error "com.pega.pegarules.priv.context.CookieDisabledException: An error has occurred which indicates that your browser does not support Cookies. You must enable Cookies in order to use this application".
This issue happened only if we run our load test tool with Jmeter. it was not happening with browser. However if we add <env name="authentication/redirectguests" value="false"/> in prconfig.xml, the issue was resolved.
I would like to know what information (such as headers/cookies/request) jmeter is sending/receiving. So wanted to enable request dump filter. From client side trace, both jmeter and browser sends the similar cookies and request bodies. i am wondering where is the error happening so that we can decide to enable this option in production or not.
please let me know if you need any addition information. i am happy to provide.
Pegasystems Inc.
US
The error message itself comes from pega engine, it is somewhat misleading. If you are not using prgateway, you should not have to set the prconfig setting you mentioned. What version of Pega are you running here? Pega has some http loggers that can help for later versions of Pega 7.
capitalone
US
we are using Pega 7.2.2.
Pegasystems Inc.
US
You can enable debug logger name (no quote) */
'LogHttpRequest'
Reproduece the error and attach the debug logs for further review.