How to implement Custom Servlet Filter with MDC Logging of All Servlet Requests ?
In Pega V7.1.8 : Is it possible to have a new Custom Servlet Filter with Custom Class defined in a jar instead of using the com.pega.pegarules.internal.web.servlet.WebStandardBoot To override init,doFilter,destroy methods? Should we need to try implementing Proxy Servlet ? Or do we have an option of customizing existing Servlet ? Or do we have any other apporach to achive the below purpose? Business Purpose : To Log all incoming servlet requests /* with MDC Filter (To Generate Request Id, Print Payload, etc )
***Edited by Moderator: Pallavi to update platform capability tags***
Any thoughts ? Currently we are trying to append MDC Filters for specific processes through available activities, E.g : During Thread Initialization, Service Calls, Wrapper Activities to trace and track of specific transactions, But to Intercept all the Incoming Servlet Requests , Servlet Filters should help.
Please share your thoughts if any one has any other better approach.
Yes, you can achieve the same though simples method would be to go through PRcustom servlet only. You can write your auth activity in the auth service rule form. There you can import your custom jar and write your own auth logic.
I am subscribing to this post. plesae, let us know if you need more information.