<?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: Audit Logging in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Audit-Logging/m-p/633175#M18494</link>
    <description>Hi gwootton,&lt;BR /&gt;&lt;BR /&gt;Good Day !!&lt;BR /&gt;Thanks for pitching in !! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I am trying it from EG.&lt;BR /&gt;In EG also this happens when we type proc statement for the first time and execute the code. It looks like it is trying to read all the tables under the library for auto suggesting the tables under the library while typing the code.&lt;BR /&gt;But this would be a fail case for us , since the users may type the code in EG trying to access only the single table, but the log would have captured all the tables under the library as accessed.&lt;BR /&gt;The WORK library entry is fine to be captured , which can be later filtered using filter tag in the xml appender configuration if needed.&lt;BR /&gt;&lt;BR /&gt;I have also tested with other library by declaring with a libname statement. This also having the same behavior.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i also tried directly executing Workspace.sh -nodms with the proc statement , i am getting only the single entry in the log with member as CARS&lt;BR /&gt;similar to this.&lt;BR /&gt;DateTime=2020-03-18T10:49:00,558 Userid=kkxm303 Action=OPEN Status=SUCCESS, Libref=SASHELP Engine=V9, Member=CARS NewMember=, MemberType=DATA Openmode=INPUT, Path=/sascommon/SAS/SASHome/SASFoundation/9.4/sashelp Sysrc=0, Sysmsg=&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 19 Mar 2020 07:48:50 GMT</pubDate>
    <dc:creator>Puru867</dc:creator>
    <dc:date>2020-03-19T07:48:50Z</dc:date>
    <item>
      <title>Audit Logging</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Audit-Logging/m-p/632985#M18489</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are testing the audit logging on which dataset is been accessed under a defined library,&lt;/P&gt;&lt;P&gt;to achieve this we have enabled the&amp;nbsp;Audit.Data.Dataset logging in the workspace server config logconfig.apm.xml with the following entries&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Audit.Data.Dataset.Open logger definition --&amp;gt;&lt;BR /&gt;&amp;lt;appender name="AuditLibraryFile" class="FileAppender"&amp;gt;&lt;BR /&gt;&amp;lt;param name="Append" value="true"/&amp;gt;&lt;BR /&gt;&amp;lt;param name="ImmediateFlush" value="true"/&amp;gt;&lt;BR /&gt;&amp;lt;param name="fileNamePattern" value="/sascommon/SAS/SASConfig/Grid1/Lev1/SASApp/WorkspaceServer/Logs/Audit.Library_server_%d_%S{hostname}_%S{pid}.log"/&amp;gt;&lt;BR /&gt;&amp;lt;layout&amp;gt;&lt;BR /&gt;&amp;lt;param name="ConversionPattern"&lt;BR /&gt;value="DateTime=%d Userid=%u Action=%E{Audit.Dataset.Action} Status=%E{Audit.Dataset.Status} Libref=%E{Audit.Dataset.Libref} Engine=%E{Audit.Dataset.Engine} Member=%E{Audit.Dataset.Member} NewMember=%E{Audit.Dataset.NewMember} MemberType=%E{Audit.Dataset.Memtype} Openmode=%E{Audit.Dataset.Openmode} Path=%E{Audit.Dataset.Path} Sysrc=%E{Audit.Dataset.Sysrc} Sysmsg=%E{Audit.Dataset.Sysmsg}"/&amp;gt;&lt;BR /&gt;&amp;lt;/layout&amp;gt;&lt;BR /&gt;&amp;lt;/appender&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Audit.Data.Dataset.Open logger definition --&amp;gt;&lt;BR /&gt;&amp;lt;logger name="Audit.Data.Dataset.Open" additivity="false"&amp;gt;&lt;BR /&gt;&amp;lt;level value="Trace"/&amp;gt;&lt;BR /&gt;&amp;lt;appender-ref ref="AuditLibraryFile"/&amp;gt;&lt;BR /&gt;&amp;lt;/logger&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are able to get the log entries&amp;nbsp; as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DateTime=2020-03-18T10:49:00,558 Userid=kkxm303 Action=OPEN Status=SUCCESS, Libref=SASHELP Engine=V9, Member=ZIPMIL NewMember=, MemberType=DATA Openmode=INPUT, Path=/sascommon/SAS/SASHome/SASFoundation/9.4/sashelp Sysrc=0, Sysmsg=&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the problem is whenever we tried to call a dataset from a library for the first time , all the datasets under the library is&amp;nbsp; being entered as open.&lt;/P&gt;&lt;P&gt;&amp;nbsp;for example&lt;/P&gt;&lt;P&gt;if we type in and run a simple statement like "proc print data=sashelp.cars;run;"&lt;/P&gt;&lt;P&gt;we would get all the sashelp library datasets are logged in the log file as opened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are not sure what is the cause on this.Can any one suggest a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We require to have only one log entry for the sashelp library member cars.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 15:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Audit-Logging/m-p/632985#M18489</guid>
      <dc:creator>Puru867</dc:creator>
      <dc:date>2020-03-18T15:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Logging</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Audit-Logging/m-p/633004#M18490</link>
      <description>&lt;P&gt;Hi Puru!&lt;/P&gt;
&lt;P&gt;I tested your XML using your example of running PROC PRINT against SASHELP.CARS and got the expected single line when run from Base SAS.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DateTime=2020-03-18T11:40:07,920 Userid=grwoot Action=OPEN Status=SUCCESS Libref=SASHELP Engine=V9 Member=CARS NewMember= MemberType=DATA Openmode=INPUT Path=C:\Program Files\SASHome\SASFoundation\9.4\core\sashelp Sysrc=0 Sysmsg=&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I tested connecting using Enterprise Guide to the local SAS instance, which added WORK:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DateTime=2020-03-18T11:44:52,980 Userid=grwoot Action=OPEN Status=SUCCESS Libref=WORK Engine=V9 Member=_PRODSAVAIL NewMember= MemberType=DATA Openmode=OUTPUT Path=C:\Users\grwoot\AppData\Roaming\SAS\EnterpriseGuide\EGTEMP\SEG-8736-3ffc61ae\contents\SAS Temporary Files\_TD9692_D7C638_\Prc2 Sysrc=0 Sysmsg=&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DateTime=2020-03-18T11:44:53,545 Userid=grwoot Action=OPEN Status=SUCCESS Libref=SASHELP Engine=V9 Member=CARS NewMember= MemberType=DATA Openmode=INPUT Path=C:\Program Files\SASHome\SASFoundation\9.4\core\sashelp Sysrc=0 Sysmsg=&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Finally I tested as you described by modifying logconfig.apm.xml in a 9.4 M5 system with Enterprise Guide. This also added another SASHELP data set.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DateTime=2020-03-18T11:49:42,399 Userid=sasdemo Action=OPEN Status=SUCCESS Libref=SASHELP Engine=V9 Member=VOPTION NewMember= MemberType=VIEW Openmode=INPUT Path=/sas94/software/compute/SASFoundation/9.4/sashelp Sysrc=0 Sysmsg=&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DateTime=2020-03-18T11:49:42,804 Userid=sasdemo Action=OPEN Status=SUCCESS Libref=WORK Engine=V9 Member=_PRODSAVAIL NewMember= MemberType=DATA Openmode=OUTPUT Path=/tmp/SAS_work456900006D8D Sysrc=0 Sysmsg=&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;DateTime=2020-03-18T11:49:43,172 Userid=sasdemo Action=OPEN Status=SUCCESS Libref=SASHELP Engine=V9 Member=CARS NewMember= MemberType=DATA Openmode=INPUT Path=/sas94/software/compute/SASFoundation/9.4/sashelp Sysrc=0 Sysmsg=&lt;/FONT&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;From your description, it sounds like your SAS session is accessing other datasets in SASHELP and the logger is writing this access out accordingly. What client are you using? If you do not access SASHELP at all, do you see any lines generated?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 15:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Audit-Logging/m-p/633004#M18490</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2020-03-18T15:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Logging</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Audit-Logging/m-p/633175#M18494</link>
      <description>Hi gwootton,&lt;BR /&gt;&lt;BR /&gt;Good Day !!&lt;BR /&gt;Thanks for pitching in !! &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I am trying it from EG.&lt;BR /&gt;In EG also this happens when we type proc statement for the first time and execute the code. It looks like it is trying to read all the tables under the library for auto suggesting the tables under the library while typing the code.&lt;BR /&gt;But this would be a fail case for us , since the users may type the code in EG trying to access only the single table, but the log would have captured all the tables under the library as accessed.&lt;BR /&gt;The WORK library entry is fine to be captured , which can be later filtered using filter tag in the xml appender configuration if needed.&lt;BR /&gt;&lt;BR /&gt;I have also tested with other library by declaring with a libname statement. This also having the same behavior.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i also tried directly executing Workspace.sh -nodms with the proc statement , i am getting only the single entry in the log with member as CARS&lt;BR /&gt;similar to this.&lt;BR /&gt;DateTime=2020-03-18T10:49:00,558 Userid=kkxm303 Action=OPEN Status=SUCCESS, Libref=SASHELP Engine=V9, Member=CARS NewMember=, MemberType=DATA Openmode=INPUT, Path=/sascommon/SAS/SASHome/SASFoundation/9.4/sashelp Sysrc=0, Sysmsg=&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Mar 2020 07:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Audit-Logging/m-p/633175#M18494</guid>
      <dc:creator>Puru867</dc:creator>
      <dc:date>2020-03-19T07:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Logging</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Audit-Logging/m-p/633270#M18497</link>
      <description>&lt;P&gt;Thanks Puru,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given it doesn't occur when running WorkspaceServer.sh -nodms it sounds like the issue lies in Enterprise Guide submitting additional code to the SAS session to access the datasets of SASHELP. What version of Enterprise Guide are you using? Do you have any startup code configured in Enterprise Guide to do this? If you only connect to the Workspace Server but do not submit any code accessing SASHELP, do you still see these lines (for example if you just ran proc setinit)? What if you use a different client, like SAS Studio? You may wish to call logconfig.trace.xml to generate a full Workspace Server log and determine everything happening in the SAS session. This process is described here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/?docsetId=bisag&amp;amp;docsetTarget=p0atyzdgfzbsjfn1j4bbbt14ic7t.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;SAS® 9.4 Intelligence Platform: System Administration Guide - Create a Log File for Workspace Server Troubleshooting&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 13:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Audit-Logging/m-p/633270#M18497</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2020-03-19T13:22:16Z</dc:date>
    </item>
  </channel>
</rss>

