Hi,

In /repository/conf/tomcat/catalina-server.xml a pattern can be given for
http_access logs as follows.

<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="${carbon.home}/repository/logs"
     prefix="http_access_" suffix=".log"
     pattern="%h %l %u %t %r %s %b"/>

With this pattern we get the log as follows.

127.0.0.1 - - [24/Sep/2014:09:03:11 +0530] GET /carbon/ HTTP/1.1 302 -
127.0.0.1 - - [24/Sep/2014:09:03:11 +0530] GET /carbon/admin/index.jsp
HTTP/1.1 302 -
127.0.0.1 - - [24/Sep/2014:09:03:12 +0530] GET /carbon/admin/login.jsp
HTTP/1.1 200 3588
127.0.0.1 - - [24/Sep/2014:09:03:12 +0530] GET /carbon/admin/css/global.css
HTTP/1.1 200 5309
127.0.0.1 - - [24/Sep/2014:09:03:12 +0530] GET
/carbon/dialog/css/jqueryui/jqueryui-themeroller.css HTTP/1.1 200 4020

According to [1], %u stands for 'Remote user that was authenticated (if
any), else '-''. But according to the above log the user is not shown. What
can be the reason for this?

Thank you,
Sameera

[1]http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html

-- 



*Thanks & Regards,Sameera Jayaratna Software Engineer; **WSO2 Inc. *

*lean . enterprise . middleware |  http://wso2.com <http://wso2.com> *
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to