BookmarkSubscribeRSS Feed
Fluorite | Level 6 AAI
Fluorite | Level 6



I am  trying to save all Web Service requests for RTDM into the new log file. So far I have modified "Lev1/Web/Common/LogConfig/SASDecisionServicesEngine-log4j.xml" and added new logfile appender. 


<appender name="XMLLog" class="org.apache.log4j.DailyRollingFileAppender">
<param name="File"
value="${config.lev.web.appserver.logs.dir}/DSEngineServer-soap.log" />
<param name="datePattern" value="'.'yyyy-MM-dd"/>
<param name="Append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %c - %m%n" />
<appender name="ASYNC_FILE_XML" class="org.apache.log4j.AsyncAppender">
<param name="BufferSize" value="100000"/>
<param name="Blocking" value="false"/>
<appender-ref ref="XMLLog"/>


 Also I have added additional logger:


<logger name=""
<level value="TRACE" />
<appender-ref ref="ASYNC_FILE_XML" />


Now all SOAP requests are saved to new log file. But it is only for SOAP. Is it possible to have similar for REST requests?




Pyrite | Level 9



I think either we or our customer (don't remember already) had a similar discussions with the Technical Support and from what I recall, the answer was "no" (not possible to fully log REST requests and responses in the current version). I would be happy to be mistaken.


If there is no way to do it in RTDM, i'd look towards SAS Web Server (which is essentially a repackaged Apache). There should be plenty of Apache mods to dump requests and responses in a configurable way (based on a URL of RTDM's REST service).


Good luck!

Dmitriy Alergant, Tier One Analytics
Fluorite | Level 6 AAI
Fluorite | Level 6

Hi Dmitry,


Hope so you are wrong Smiley Happy On our site we have SAS CI 6.5. Hope so there is easy way to save REST/JSON messages to the log. Otherwise I guess we will need to live without it.


Hope so someone on SAS Community has made it work and has step by step instructions.

How to improve email deliverability

SAS' Peter Ansbacher shows you how to use the dashboard in SAS Customer Intelligence 360 for better results.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2 in conversation