JBoss logging


We run a webapp on JBoss AS and i am looking into a way of logging all users who logon to our webserver. At the moment the logs only show failed attempts but i would like to view all attempts so we can monitor if users have issues.
Who is Participating?
J4M3S_UKConnect With a Mentor Commented:
I've just had a look through our configuration... you need to be modifying jboss-x.x.x\server\default\conf\log4j.xml

Add the following entry...

<category name="org.jboss.security">
    <priority value="DEBUG"/>

That will get you debugging output from JAAS.

If you need more logging you will need to extend the class that is doing the authentication. Take a look at conf\login-config.xml. You need to see which class is being used for authentication, extend it to add the debug output, then reference it in that xml file.

Attach your log4j.xml and login-config.xml files here if you are still having trouble...
Your going to have to go into a lot more detail... what security/login method are you using?
first try to put org.jboss.security to DEBUG level in jboss-log4j.xml file.
then check which class printouts  a user names and define debug level only for this class.
Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

damiancoughlanAuthor Commented:
we are using j_security_check if that helps J4M3S_UK.
i have tried setting the level to debug in log4j.xml but cannot see if output in the log ramazanych.
any ideas?
This page describes how to setup the desired log4j debug level... :) http://www.jboss.org/developers/guides/logging
damiancoughlanAuthor Commented:
J4M3S_UK i have tried setting up logging on this but cannot get it working. Do you know of a more detailed guide as i am new to jboss?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.