We have just created a new "Generic" application in Crowd and would like to monitor its interaction with the server/api.
Is it possible to log the activity of an individual application? If so any help would be appreciated.
Thanks
Based on Caspar's comment, there appears to be no native way to achieve the goal.
For the purpose of testing, I have configured Access Logging in Tomcat for the crowd context in our test instance as follows:
Modify {crowd-install}\apache-tomcat\conf\Catalina\localhost\crowd.xml and add the following element before the </Context> element:
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="${catalina.base}/logs" prefix="access_log." fileDateFormat="yyyy-MM-dd" suffix=".log" pattern="%a %{Authorization}i %t &quot;%m %U%q %H&quot; %s %b %D &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot;" />
This generates an access log file (one per day) in {crowd-install}\apache-tomcat\logs which can be interrogated to evaluate the interactions of an application with Crowd.
NB:
Ian - does this log the IP address of the application and the originating web browser of the user? Thx, M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Martin Cleaver [Blended Perspectives] - yes the log file should contain the following information * %a - Remote IP address * %{Authorization}I - the value of the value of incoming header with name _Authorisation_ * %t - the timestamp for the request * %m - Request method (GET, POST, etc.) * %U - Requested URL path * %q - Query string (prepended with a '?' if it exists) * %H - Request protocol * %s - HTTP status code of the response * %b - Bytes sent, excluding HTTP headers, or '-' if zero * %D - Time taken to process the request, in millis * %{Referer}i - the value of the value of incoming header with name _Referer_ * %{User-Agent}i - the value of the value of incoming header with name _User-Agent_ The actual output is configurable - for more information see [http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Access_Log_Valve]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Caspar
Thanks for the pointers - I'll take and look and vote on the issues if they're appropriate!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.