<?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 %u in log4j.xml does not display user's name in the log in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/u-in-log4j-xml-does-not-display-user-s-name-in-the-log/m-p/916926#M28035</link>
    <description>&lt;P&gt;&lt;SPAN&gt;We recently started using SAS 9.4M8 and trying to read user’s name in the Web Report Studio logs with %u in the &amp;lt;SASConfig&amp;gt;\Web\Common\&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;LogConfig\SASWebReportStudio4.&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;4-log4j.xml , but it looks encrypted. I can see that the log4j framework has changed in SAS 9.4M8. Is there any way of modifying the log4j.xml file to make the user’s name appear in the logs like how it was in the previous maintenance releases?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is the pattern I'm using: [WRS] %-5p [%t] %d{ISO8601} [%s:%u] %c{4} - %m%n&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In place of&amp;nbsp;[%s:%u], it appears like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;[%s:fd998900-cf13-11ee-b5ec-&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;005056a787a5]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 08:33:36 GMT</pubDate>
    <dc:creator>sangavis37</dc:creator>
    <dc:date>2024-02-20T08:33:36Z</dc:date>
    <item>
      <title>%u in log4j.xml does not display user's name in the log</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/u-in-log4j-xml-does-not-display-user-s-name-in-the-log/m-p/916926#M28035</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We recently started using SAS 9.4M8 and trying to read user’s name in the Web Report Studio logs with %u in the &amp;lt;SASConfig&amp;gt;\Web\Common\&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;LogConfig\SASWebReportStudio4.&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;4-log4j.xml , but it looks encrypted. I can see that the log4j framework has changed in SAS 9.4M8. Is there any way of modifying the log4j.xml file to make the user’s name appear in the logs like how it was in the previous maintenance releases?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is the pattern I'm using: [WRS] %-5p [%t] %d{ISO8601} [%s:%u] %c{4} - %m%n&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In place of&amp;nbsp;[%s:%u], it appears like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;[%s:fd998900-cf13-11ee-b5ec-&lt;/SPAN&gt;&lt;WBR /&gt;&lt;SPAN&gt;005056a787a5]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 08:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/u-in-log4j-xml-does-not-display-user-s-name-in-the-log/m-p/916926#M28035</guid>
      <dc:creator>sangavis37</dc:creator>
      <dc:date>2024-02-20T08:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: %u in log4j.xml does not display user's name in the log</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/u-in-log4j-xml-does-not-display-user-s-name-in-the-log/m-p/917176#M28044</link>
      <description>I think this is an artifact of moving to log4j version 2, where %u is short for %uuid:&lt;BR /&gt;&lt;A href="https://logging.apache.org/log4j/2.x/manual/layouts.html#patterns" target="_blank"&gt;https://logging.apache.org/log4j/2.x/manual/layouts.html#patterns&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It doesn't look like the %u or %s (for session ID) values you are using are available in 9.4 M8. You may wish to engage SAS Technical Support to confirm.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2024 15:31:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/u-in-log4j-xml-does-not-display-user-s-name-in-the-log/m-p/917176#M28044</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2024-02-21T15:31:35Z</dc:date>
    </item>
  </channel>
</rss>

