BookmarkSubscribeRSS Feed
sangavis37
Obsidian | Level 7

We recently started using SAS 9.4M8 and trying to read user’s name in the Web Report Studio logs with %u in the <SASConfig>\Web\Common\LogConfig\SASWebReportStudio4.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?

This is the pattern I'm using: [WRS] %-5p [%t] %d{ISO8601} [%s:%u] %c{4} - %m%n

In place of [%s:%u], it appears like this:

 [%s:fd998900-cf13-11ee-b5ec-005056a787a5]

 

1 REPLY 1
gwootton
SAS Super FREQ
I think this is an artifact of moving to log4j version 2, where %u is short for %uuid:
https://logging.apache.org/log4j/2.x/manual/layouts.html#patterns

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.
--
Greg Wootton | Principal Systems Technical Support Engineer

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 414 views
  • 0 likes
  • 2 in conversation