<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Logging API request headers in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/logging-api-request-headers/m-p/134075#M36096</link>
    <description>&lt;P&gt;There is no default feature to map arbitrary HTTP headers into the logging context, but you could simply implement an extension with a WebFilter / ServletFilter to map your headers to the log4j MDC, and adapt the logging format via custom-log4j.properties to include those MDC variables.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 10:31:00 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2021-09-07T10:31:00Z</dc:date>
    <item>
      <title>Logging API request headers</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/logging-api-request-headers/m-p/134074#M36095</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have an application that uses tracking ids throughout multiple services. This id is also sent to Alfresco using headers.&lt;/P&gt;&lt;P&gt;We would like to log this id in some way. I searched the docs but could not find anything how to log (all) headers of the requests (e.g. when a node is added).&lt;/P&gt;&lt;P&gt;Is this possible, or is there some other way we could get this id to show up in the Alfresco logs?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;BR /&gt;LNE&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 13:39:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/logging-api-request-headers/m-p/134074#M36095</guid>
      <dc:creator>lnedasco</dc:creator>
      <dc:date>2021-09-06T13:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Logging API request headers</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/logging-api-request-headers/m-p/134075#M36096</link>
      <description>&lt;P&gt;There is no default feature to map arbitrary HTTP headers into the logging context, but you could simply implement an extension with a WebFilter / ServletFilter to map your headers to the log4j MDC, and adapt the logging format via custom-log4j.properties to include those MDC variables.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 10:31:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/logging-api-request-headers/m-p/134075#M36096</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-09-07T10:31:00Z</dc:date>
    </item>
  </channel>
</rss>

