<?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: Count and List of SAS STPs used in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813094#M24384</link>
    <description>Found the following in the logDiscovery_20220511_174502.log&lt;BR /&gt;--- start log ---&lt;BR /&gt;2022-05-11 17:45:05,987 INFO  [main] [configureAPM] - ****************************&lt;BR /&gt;2022-05-11 17:45:05,987 INFO  [main] [configureAPM] - found: StoredProcessServer&lt;BR /&gt;        /opt/sas/config/Lev1/SASApp/StoredProcessServer&lt;BR /&gt;2022-05-11 17:45:05,987 INFO  [main] [configureAPM] - PERF: SASApp StoredProcessServer&lt;BR /&gt;2022-05-11 17:45:05,987 INFO  [main] [configureAPM] - Creating /opt/sas/config/Lev1/SASApp/StoredProcessServer/PerfLogs&lt;BR /&gt;2022-05-11 17:45:05,987 INFO  [main] [configureAPM] - /opt/sas/config/Lev1/SASApp/StoredProcessServer/PerfLogs already exists.&lt;BR /&gt;2022-05-11 17:45:05,992 INFO  [main] [configureAPM] - No Update: EMI content already in /opt/sas/config/Lev1/SASApp/StoredProcessServer/sasv9_usermods.cfg&lt;BR /&gt;2022-05-11 17:45:05,993 INFO  [main] [configureAPM] - ****************************&lt;BR /&gt;2022-05-11 17:45:05,993 INFO  [main] [configureAPM] - found: WorkspaceServer&lt;BR /&gt;        /opt/sas/config/Lev1/SASApp/WorkspaceServer&lt;BR /&gt;2022-05-11 17:45:05,994 INFO  [main] [configureAPM] - PERF_WS: SASApp WorkspaceServer&lt;BR /&gt;2022-05-11 17:45:05,994 INFO  [main] [configureAPM] - Creating /opt/sas/config/Lev1/SASApp/WorkspaceServer/PerfLogs&lt;BR /&gt;2022-05-11 17:45:05,994 INFO  [main] [configureAPM] - /opt/sas/config/Lev1/SASApp/WorkspaceServer/PerfLogs already exists.&lt;BR /&gt;... more lines&lt;BR /&gt;2022-05-11 17:45:06,539 INFO  [main] [configureAPM] - ****************************&lt;BR /&gt;2022-05-11 17:45:06,540 INFO  [main] [configureAPM] - Found 1 'Server.DataStepBatch' objects in metadata&lt;BR /&gt;2022-05-11 17:45:06,548 INFO  [main] [configureAPM] - No Update: property value 'BatchServer.DataStep.Property.LogExt.xmlKey.txt' is correct&lt;BR /&gt;2022-05-11 17:45:06,548 INFO  [main] [configureAPM] - Existing value is '_'&lt;BR /&gt;&lt;BR /&gt;2022-05-11 17:45:06,549 INFO  [main] [configureAPM] - Service Architecture Client APM Configuration completed&lt;BR /&gt;2022-05-11 17:45:06,550 INFO  [main] [logDiscovery] - Running discovery...&lt;BR /&gt;2022-05-11 17:45:06,554 INFO  [main] [logDiscovery] - Configuration file already exists at /opt/sas/config/Lev1/Web/SASEnvironmentManager/emi-client/Conf/log_locations.json, overwriting...&lt;BR /&gt;2022-05-11 17:45:06,654 INFO  [main] [logDiscovery] - Discovered 13 matching log directories&lt;BR /&gt;2022-05-11 17:45:06,654 INFO  [main] [logDiscovery] - [log_locations.json] written to Conf&lt;BR /&gt;2022-05-11 17:45:06,654 INFO  [main] [logDiscovery] - Service Architecture Log Discovery completed successfully&lt;BR /&gt;--- end log ---&lt;BR /&gt;The STPs are run via SAS AMO Excel and under executing end user's credential (WSS).&lt;BR /&gt;</description>
    <pubDate>Thu, 12 May 2022 21:32:27 GMT</pubDate>
    <dc:creator>shoin</dc:creator>
    <dc:date>2022-05-12T21:32:27Z</dc:date>
    <item>
      <title>Count and List of SAS STPs used</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/812777#M24371</link>
      <description>&lt;P&gt;I am trying to find the number of STPSs run in a given time period, most imp info would be the STP name and count.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most STPs are run via SAS AMO (Excel) in my environment.&amp;nbsp; (SAS 9.4 TS1M6-Office Analytics)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have looked in EVM extended kit, I did not luck out there, the two STP related reports&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Stored Process Daily Job Runtimes ARM Log Analysis - Stored Process daily job runtimes&lt;BR /&gt;Stored Process Job Profile by Runtime ARM Log Analysis - Stored Process Server job profile by job runtimes&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;renders nothing useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran a log parser which gives me counts but not which STP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has someone done this before and could offer any insight?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;
&lt;P&gt;S.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran a log parser&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 18:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/812777#M24371</guid>
      <dc:creator>shoin</dc:creator>
      <dc:date>2022-05-11T18:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Count and List of SAS STPs used</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/812794#M24372</link>
      <description>If you have the SAS Environment Manager Service Architecture Framework this creates a table ARTIFACT.ARTIFACTUSAGEDETAILS with an "artifactType" and "artifact" column that can be used to find stored process usage.&lt;BR /&gt;&lt;BR /&gt; proc sql;&lt;BR /&gt;	create table stp as &lt;BR /&gt;	select * from artifact.artifactusagedetails where artifacttype="STOREDPROCESS";&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;proc freq data=stp;&lt;BR /&gt;table artifact;&lt;BR /&gt;run;</description>
      <pubDate>Wed, 11 May 2022 20:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/812794#M24372</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-05-11T20:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Count and List of SAS STPs used</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/812820#M24374</link>
      <description>Knowledge is indeed power ... I will give it a try.  Much thanks!</description>
      <pubDate>Wed, 11 May 2022 22:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/812820#M24374</guid>
      <dc:creator>shoin</dc:creator>
      <dc:date>2022-05-11T22:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count and List of SAS STPs used</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813067#M24382</link>
      <description>The report came up with 0 obs.  I ran the validation and also ensured that the APD ETL was also enabled (logs are being generated) so now I have to chase why despite validation for the framework and APM ETL initialization implemented and running, no observations come up.</description>
      <pubDate>Thu, 12 May 2022 18:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813067#M24382</guid>
      <dc:creator>shoin</dc:creator>
      <dc:date>2022-05-12T18:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count and List of SAS STPs used</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813068#M24383</link>
      <description>The information is read from the StoredProcessServer/PerfLogs files. Are these stored processes being run on the stored process server?&lt;BR /&gt;&lt;BR /&gt;$ pwd&lt;BR /&gt;/sas94/config/compute/Lev1/SASApp/StoredProcessServer/PerfLogs&lt;BR /&gt;$ grep STOREDPROCESS *&lt;BR /&gt;arm4_STPServer_2021-07-07_comp_24779.log:2021-07-07T09:12:11,757|Perf.ARM./Products/SAS_Environment_Manager/Nightly_Reports/Audit_Reports_(Log_Forensic)/User_Accounts_Added.APPL|                                                        |                                                        |G,1941282731.757100,2,2,STOREDPROCESS,&lt;BR /&gt;...</description>
      <pubDate>Thu, 12 May 2022 18:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813068#M24383</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-05-12T18:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count and List of SAS STPs used</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813094#M24384</link>
      <description>Found the following in the logDiscovery_20220511_174502.log&lt;BR /&gt;--- start log ---&lt;BR /&gt;2022-05-11 17:45:05,987 INFO  [main] [configureAPM] - ****************************&lt;BR /&gt;2022-05-11 17:45:05,987 INFO  [main] [configureAPM] - found: StoredProcessServer&lt;BR /&gt;        /opt/sas/config/Lev1/SASApp/StoredProcessServer&lt;BR /&gt;2022-05-11 17:45:05,987 INFO  [main] [configureAPM] - PERF: SASApp StoredProcessServer&lt;BR /&gt;2022-05-11 17:45:05,987 INFO  [main] [configureAPM] - Creating /opt/sas/config/Lev1/SASApp/StoredProcessServer/PerfLogs&lt;BR /&gt;2022-05-11 17:45:05,987 INFO  [main] [configureAPM] - /opt/sas/config/Lev1/SASApp/StoredProcessServer/PerfLogs already exists.&lt;BR /&gt;2022-05-11 17:45:05,992 INFO  [main] [configureAPM] - No Update: EMI content already in /opt/sas/config/Lev1/SASApp/StoredProcessServer/sasv9_usermods.cfg&lt;BR /&gt;2022-05-11 17:45:05,993 INFO  [main] [configureAPM] - ****************************&lt;BR /&gt;2022-05-11 17:45:05,993 INFO  [main] [configureAPM] - found: WorkspaceServer&lt;BR /&gt;        /opt/sas/config/Lev1/SASApp/WorkspaceServer&lt;BR /&gt;2022-05-11 17:45:05,994 INFO  [main] [configureAPM] - PERF_WS: SASApp WorkspaceServer&lt;BR /&gt;2022-05-11 17:45:05,994 INFO  [main] [configureAPM] - Creating /opt/sas/config/Lev1/SASApp/WorkspaceServer/PerfLogs&lt;BR /&gt;2022-05-11 17:45:05,994 INFO  [main] [configureAPM] - /opt/sas/config/Lev1/SASApp/WorkspaceServer/PerfLogs already exists.&lt;BR /&gt;... more lines&lt;BR /&gt;2022-05-11 17:45:06,539 INFO  [main] [configureAPM] - ****************************&lt;BR /&gt;2022-05-11 17:45:06,540 INFO  [main] [configureAPM] - Found 1 'Server.DataStepBatch' objects in metadata&lt;BR /&gt;2022-05-11 17:45:06,548 INFO  [main] [configureAPM] - No Update: property value 'BatchServer.DataStep.Property.LogExt.xmlKey.txt' is correct&lt;BR /&gt;2022-05-11 17:45:06,548 INFO  [main] [configureAPM] - Existing value is '_'&lt;BR /&gt;&lt;BR /&gt;2022-05-11 17:45:06,549 INFO  [main] [configureAPM] - Service Architecture Client APM Configuration completed&lt;BR /&gt;2022-05-11 17:45:06,550 INFO  [main] [logDiscovery] - Running discovery...&lt;BR /&gt;2022-05-11 17:45:06,554 INFO  [main] [logDiscovery] - Configuration file already exists at /opt/sas/config/Lev1/Web/SASEnvironmentManager/emi-client/Conf/log_locations.json, overwriting...&lt;BR /&gt;2022-05-11 17:45:06,654 INFO  [main] [logDiscovery] - Discovered 13 matching log directories&lt;BR /&gt;2022-05-11 17:45:06,654 INFO  [main] [logDiscovery] - [log_locations.json] written to Conf&lt;BR /&gt;2022-05-11 17:45:06,654 INFO  [main] [logDiscovery] - Service Architecture Log Discovery completed successfully&lt;BR /&gt;--- end log ---&lt;BR /&gt;The STPs are run via SAS AMO Excel and under executing end user's credential (WSS).&lt;BR /&gt;</description>
      <pubDate>Thu, 12 May 2022 21:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813094#M24384</guid>
      <dc:creator>shoin</dc:creator>
      <dc:date>2022-05-12T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count and List of SAS STPs used</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813230#M24385</link>
      <description>If you are running the stored processes in a workspace server then they are not logged in PerfLogs, so we can't report on them this way.&lt;BR /&gt;&lt;BR /&gt;The logDiscovery process is what ensures all the application servers have the APM logconfig in place and updates the log_locations.json file so the log collection process knows where to get the logs from.</description>
      <pubDate>Fri, 13 May 2022 14:30:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813230#M24385</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-05-13T14:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count and List of SAS STPs used</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813249#M24386</link>
      <description>Thank you Greg.  Is there any other way, since they are triggered via AMO; Excel.?&lt;BR /&gt;&lt;BR /&gt;S</description>
      <pubDate>Fri, 13 May 2022 15:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813249#M24386</guid>
      <dc:creator>shoin</dc:creator>
      <dc:date>2022-05-13T15:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Count and List of SAS STPs used</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813264#M24387</link>
      <description>You could add a custom logging configuration to the Workspace Server to capture stored process actions in a separate log and then parse those files. Workspace Server trace logging might help narrow down what logger you want.&lt;BR /&gt;&lt;BR /&gt;I turned on trace logging and ran a stored process in a workspace server from the stored process web application and found the App.SASXSTP logger includes a line that provides the program path at the debug level:&lt;BR /&gt;2022-05-13T12:43:55,629 DEBUG [00000015] :sasdemo - [00000001] STPXMVA Input arg: '_program' = /Products/SAS Environment Manager/Dynamic Reports/Metadata Inventory/Server Properties&lt;BR /&gt;&lt;BR /&gt;So if you added to your active logconfig.xml file (probably logconfig.apm.xml since you have the framework enabled) an new appender and a logger definition pointing App.SASXSTP at debug to that new appender it would create log files with this info. You could then parse them using SAS manually or by way of an ETL. This would only work going forward though, you'd have no historical data.</description>
      <pubDate>Fri, 13 May 2022 16:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813264#M24387</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2022-05-13T16:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count and List of SAS STPs used</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813318#M24388</link>
      <description>Much thanks!  I will accept this as a solution.  I discovered the same for WSS log (trace enabled) that it was including the pgm name just as you pointed out.  What I will do is use the log parse I previously used (only generated count by user) to add a capture of the said line, place all WSS logs in one main file and run that parser on it.   Much appreciate the input.  I will circle back if this worked.</description>
      <pubDate>Sat, 14 May 2022 00:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Count-and-List-of-SAS-STPs-used/m-p/813318#M24388</guid>
      <dc:creator>shoin</dc:creator>
      <dc:date>2022-05-14T00:10:21Z</dc:date>
    </item>
  </channel>
</rss>

