<?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: get job results from C# sdk in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-latest-job-results-from-C-SDK/m-p/449640#M8157</link>
    <description>&lt;P&gt;(If anyone looks for this in the future, I've concluded that as of yet the C#SDK isn't feature complete and I've gone back to using the API directly)&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2019 07:50:47 GMT</pubDate>
    <dc:creator>thepainfull</dc:creator>
    <dc:date>2019-07-02T07:50:47Z</dc:date>
    <item>
      <title>How to get latest job results from C# SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-latest-job-results-from-C-SDK/m-p/449639#M8156</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've been at this for two days now, getting a bit frustrated.&lt;/P&gt;
&lt;P&gt;I want to, given a saved search and the app it comes from, get the latest job result. I can do that with the API fairly easily by hitting the &lt;STRONG&gt;/servicesNS/[user]/[appname]/saved/searches/[saved search]/history&lt;/STRONG&gt; endpoint, and &lt;STRONG&gt;services/search/jobs/[job id]/results&lt;/STRONG&gt; after that.&lt;BR /&gt;Now I would like to do the same using the C# SDK (inside a .NET project). All I've been able to do so far is to get the list of apps :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;var service = new Service (new Uri([my splunk url]));
await service.LogOnAsync ([user], [pass]);            
await service.Applications.GetAllAsync();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And a list of jobs :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; await service.Jobs.GetAllAsync();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now, I have no clue how to go any further. I've tried :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;var results = job.GetSearchResultsAsync();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But that only populates the properties of each job in the &lt;CODE&gt;service.Jobs&lt;/CODE&gt; list.&lt;/P&gt;
&lt;P&gt;I have also seen references to a &lt;CODE&gt;ResultsReader&lt;/CODE&gt; class for both the java and python SDK's, but nothing for the C# one.&lt;/P&gt;
&lt;P&gt;Am I missing something obvious ? Not obvious ? Is it even possible ?&lt;/P&gt;
&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 23:34:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-latest-job-results-from-C-SDK/m-p/449639#M8156</guid>
      <dc:creator>thepainfull</dc:creator>
      <dc:date>2020-06-17T23:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: get job results from C# sdk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-get-latest-job-results-from-C-SDK/m-p/449640#M8157</link>
      <description>&lt;P&gt;(If anyone looks for this in the future, I've concluded that as of yet the C#SDK isn't feature complete and I've gone back to using the API directly)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 07:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-get-latest-job-results-from-C-SDK/m-p/449640#M8157</guid>
      <dc:creator>thepainfull</dc:creator>
      <dc:date>2019-07-02T07:50:47Z</dc:date>
    </item>
  </channel>
</rss>

