Logging arbitrary HTTP Headers feature of 5.1.x

Michael Grady mgrady at unicon.net
Mon Oct 7 22:38:43 UTC 2024


I just tried using the MDCHeaders feature added to IdP 5.1. I defined this map in global.xml:

	<util:map id="shibboleth.MDCHeaders">
	  <entry key="idp.headers.xmsfci" value="X-MS-Forwarded-Client-IP" />
	</util:map>

and then tried referencing that in logback.xml as:

   %mdc{idp.headers.xmsfci} 

There are no errors in the servlet logs that I see, but no IdP logs are being written (well, an empty process and warn log).

Do I need to define that map somewhere else, and/or what did I miss in how to use this feature? (Or mess up in the above config.)

p.s. I did try to define that map in audit.xml instead of global.xml, but got the same result. No error in Tomcat logs, but no IdP logs actually being created, But IdP works fine, just no logs.

--
Michael A. Grady
IAM Architect, Unicon, Inc.





More information about the users mailing list