Is there a way to log HTTP post data in JBoss 7.1.1?
Is there a class you set to DEBUG in the logging configuration that will output this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can configure http access logging in the web subsystem of
standlone.xmlordomain.xmlfiles.Here is an example:
or you can use the CLI (recommended – use the tab complete feature to find out available attributes):
UPDATE based on the comment from OP below
If you want to track the HTTP request content then you will need to enable RequestDumperValve. In JBossAS7 you can not enable this globally (unlike AS5 or AS6)/. You have to enable it on a per deployment basis. Add this line in
WEB-INF\jboss-web.xmlfile:You do not need the access log enabled for the valves, it will output the info in the
server.logfile. You can read more about RequestDumperValve. You may also be interested in RequestFilterValve.These valves are generally used for debugging purposes though and not in production usage. So do keep that in mind as they are quite verbose. Alternatively you can look at tools like WireShark or Fiddler. If you really want to dig even deeper TCPDumps would be the way to go (word of caution – they are quite big and complicated to analyze).
Hope this helps!