Excellent .. now this means we can use the ton of available http log stats tools against these files.
Sanjiva. On Wed, Jun 22, 2011 at 5:22 PM, Kathiravelu Pradeeban <[email protected]>wrote: > Hi, > We have implemented httpd style logs (that is identical to the access logs > by Tomcat Access Log Valve and httpd) for synapse, as we have discussed a > few months ago over this list. This eliminates httpd sitting in front of > WSO2 Load Balancer - STRATOS-828<https://wso2.org/jira/browse/STRATOS-828>. > Tomcat's AccessLogValve code segments were used with thanks, in this > implementation. > > As discussed with Azeez offline, I will branch wso2's synapse branch > (2.1.0-wso2v3) and commit the changes along with the changes to the relevant > 3.2.1 components/products to use. I will also create an rfe and attach the > patch to the Synapse Jira. > > To enable access logging, you will have to uncomment (or place) > log4j.logger.org.apache.synapse.transport.nhttp.access=DEBUG > from the log4j.properties of Load Balancer or ESB product. > > I have done considerable testing for performance and compatibility, and > will keep improving too, if Chamith comes up with further requirements for > his log analyzer tools. > > > > 10.100.0.15:9443 - - [22/Jun/2011:16:57:14 +0530] "GET > /carbon/statistics/index.jsp?region=region4&item=statistics_menu HTTP/1.1" > 302 - " > https://10.100.0.15:8243/carbon/viewflows/index.jsp?region=region4&item=flows_menu" > "Synapse-HttpComponents-NIO" > 10.100.0.15:8243 - - [22/Jun/2011:16:57:14 +0530] "GET > /carbon/statistics/index.jsp?region=region4&item=statistics_menu HTTP/1.1" > 302 - " > https://10.100.0.15:8243/carbon/viewflows/index.jsp?region=region4&item=flows_menu" > "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422 > Ubuntu/10.04 (lucid) Firefox/3.6.17" > 10.100.0.15:9443 - - [22/Jun/2011:16:57:14 +0530] "GET > /carbon/admin/login.jsp HTTP/1.1" 200 - " > https://10.100.0.15:8243/carbon/viewflows/index.jsp?region=region4&item=flows_menu" > "Synapse-HttpComponents-NIO" > 10.100.0.15:8243 - - [22/Jun/2011:16:57:14 +0530] "GET > /carbon/admin/login.jsp HTTP/1.1" 200 - " > https://10.100.0.15:8243/carbon/viewflows/index.jsp?region=region4&item=flows_menu" > "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422 > Ubuntu/10.04 (lucid) Firefox/3.6.17" > 10.100.0.15:9443 - - [22/Jun/2011:16:57:28 +0530] "POST > /carbon/admin/login_action.jsp HTTP/1.1" 302 - " > https://10.100.0.15:8243/carbon/admin/login.jsp" > "Synapse-HttpComponents-NIO" > 10.100.0.15:8243 - - [22/Jun/2011:16:57:28 +0530] "POST > /carbon/admin/login_action.jsp HTTP/1.1" 302 - " > https://10.100.0.15:8243/carbon/admin/login.jsp" "Mozilla/5.0 (X11; U; > Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422 Ubuntu/10.04 (lucid) > Firefox/3.6.17" > 10.100.0.15:9443 - - [22/Jun/2011:16:57:28 +0530] "GET > /carbon/statistics/index.jsp?region=region4&item=statistics_menu&loginStatus=true > HTTP/1.1" 200 - "https://10.100.0.15:8243/carbon/admin/login.jsp" > "Synapse-HttpComponents-NIO" > 10.100.0.15:8243 - - [22/Jun/2011:16:57:29 +0530] "GET > /carbon/statistics/index.jsp?region=region4&item=statistics_menu&loginStatus=true > HTTP/1.1" 200 - "https://10.100.0.15:8243/carbon/admin/login.jsp" > "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422 > Ubuntu/10.04 (lucid) Firefox/3.6.17" > 10.100.0.15:9443 - - [22/Jun/2011:16:57:28 +0530] "GET > /carbon/admin/jsp/registry_styles_ajaxprocessor.jsp HTTP/1.1" 200 - " > https://10.100.0.15:8243/carbon/statistics/index.jsp?region=region4&item=statistics_menu&loginStatus=true" > "Synapse-HttpComponents-NIO" > 10.100.0.15:8243 - - [22/Jun/2011:16:57:29 +0530] "GET > /carbon/admin/jsp/registry_styles_ajaxprocessor.jsp HTTP/1.1" 200 - " > https://10.100.0.15:8243/carbon/statistics/index.jsp?region=region4&item=statistics_menu&loginStatus=true" > "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422 > Ubuntu/10.04 (lucid) Firefox/3.6.17" > > > > Thank you. > Regards, > Pradeeban. > -- > Kathiravelu Pradeeban. > Software Engineer. > WSO2 Inc. > > Blog: [Llovizna] http://kkpradeeban.blogspot.com/ > > > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Sanjiva Weerawarana, Ph.D. Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/ email: [email protected]; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1 650 265 8311 blog: http://sanjiva.weerawarana.org/ Lean . Enterprise . Middleware
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
