<?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: SAS VIYA Scheduled jobs log in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-Scheduled-jobs-log/m-p/914769#M2240</link>
    <description>&lt;P&gt;Log-files from scheduled jobs are being saved on the content-server. Note that this file are only a certain period available, so you've download the original logfiles&amp;nbsp; before they are being deleted on the&amp;nbsp; content-server. ( Of course you may save this files on an other location on the content-server)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;%let base_uri=%sysfunc(getoption(SERVICESBASEURL));

filename jobrec temp;


/*this gives a list with file-uris for log-files for scheduled jobs */
proc http method=get oauth_bearer = sas_services
     url="&amp;amp;base_uri/jobExecution/jobs?limit=300%nrstr(&amp;amp;filter=eq(submittedByApplication, 'jobExecution'))"
     out=jobrec
     ;
 run;

libname jobrec json;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then you can use the file-api to retrieve the contents of a particular log-file&lt;/P&gt;</description>
    <pubDate>Tue, 06 Feb 2024 21:40:38 GMT</pubDate>
    <dc:creator>MAGG</dc:creator>
    <dc:date>2024-02-06T21:40:38Z</dc:date>
    <item>
      <title>SAS VIYA Scheduled jobs log</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-Scheduled-jobs-log/m-p/914655#M2237</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am new to SAS viya . currently&amp;nbsp; in our organization using SAS Viya 2023.03 version . I would like to know whether any command can be used to find the logs path for the scheduled jobs . i like to&amp;nbsp; store the logs of my jobs in specific path and like to read programmatically .&lt;/P&gt;&lt;P&gt;I check the default path given&amp;nbsp; like /opt/sas/viya/config/compsrv/default - but no files/data available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so like to know any sas command or kubctl command useful to fetch the path of sas scheduled jobs logs.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 09:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-Scheduled-jobs-log/m-p/914655#M2237</guid>
      <dc:creator>Sai_001</dc:creator>
      <dc:date>2024-02-06T09:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VIYA Scheduled jobs log</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-Scheduled-jobs-log/m-p/914714#M2239</link>
      <description>Scheduled job logs are accessible from SAS Environment Manager -&amp;gt; Jobs and Flows -&amp;gt; Monitoring. The Logs column should have a download link.&lt;BR /&gt;The jobs run in pods that are ephemeral, so logs would not be persisted on the file system of those pods.</description>
      <pubDate>Tue, 06 Feb 2024 15:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-Scheduled-jobs-log/m-p/914714#M2239</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2024-02-06T15:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VIYA Scheduled jobs log</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-Scheduled-jobs-log/m-p/914769#M2240</link>
      <description>&lt;P&gt;Log-files from scheduled jobs are being saved on the content-server. Note that this file are only a certain period available, so you've download the original logfiles&amp;nbsp; before they are being deleted on the&amp;nbsp; content-server. ( Of course you may save this files on an other location on the content-server)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;%let base_uri=%sysfunc(getoption(SERVICESBASEURL));

filename jobrec temp;


/*this gives a list with file-uris for log-files for scheduled jobs */
proc http method=get oauth_bearer = sas_services
     url="&amp;amp;base_uri/jobExecution/jobs?limit=300%nrstr(&amp;amp;filter=eq(submittedByApplication, 'jobExecution'))"
     out=jobrec
     ;
 run;

libname jobrec json;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then you can use the file-api to retrieve the contents of a particular log-file&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2024 21:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-VIYA-Scheduled-jobs-log/m-p/914769#M2240</guid>
      <dc:creator>MAGG</dc:creator>
      <dc:date>2024-02-06T21:40:38Z</dc:date>
    </item>
  </channel>
</rss>

