<?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: How to call scheduled saved search from java sdk in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75451#M10329</link>
    <description>&lt;P&gt;job.cancel() will remove that particular job from the saved search's history ... if that's what you are asking.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2013 17:57:15 GMT</pubDate>
    <dc:creator>Neeraj_Luthra</dc:creator>
    <dc:date>2013-04-01T17:57:15Z</dc:date>
    <item>
      <title>How to call scheduled saved search from java sdk</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75448#M10326</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I am planning to call a scheduled saved search from java &lt;BR /&gt;
  SavedSearch savedSearch = service.getSavedSearches().get("mysavedsearch");&lt;/P&gt;

&lt;P&gt;Job[] jobColl=null;&lt;BR /&gt;
jobColl =savedSearch.history();&lt;/P&gt;

&lt;P&gt;How can I get the last run job results from here.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 23:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75448#M10326</guid>
      <dc:creator>bubby248</dc:creator>
      <dc:date>2013-03-26T23:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to call scheduled saved search from java sdk</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75449#M10327</link>
      <description>&lt;P&gt;If the jobColl is not empty, then the first element in the array will be the most recent run.&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;SavedSearch savedSearch = service.getSavedSearches().get("mysavedsearch");&lt;BR /&gt;
Job[] jobColl =savedSearch.history();&lt;BR /&gt;
Job job;&lt;BR /&gt;
if (jobColl.length &amp;gt; 0) {&lt;BR /&gt;
    // get the most recent run&lt;BR /&gt;
    job = jobColl[0];&lt;BR /&gt;
} else {&lt;BR /&gt;
    job = savedSearch.dispatch();&lt;BR /&gt;
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 04:57:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75449#M10327</guid>
      <dc:creator>Neeraj_Luthra</dc:creator>
      <dc:date>2013-03-27T04:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to call scheduled saved search from java sdk</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75450#M10328</link>
      <description>&lt;P&gt;Thanks.&lt;BR /&gt;
Am using job.cancel(), after this operation.Does this remove the scheduled saved search from the history?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 17:14:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75450#M10328</guid>
      <dc:creator>bubby248</dc:creator>
      <dc:date>2013-04-01T17:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to call scheduled saved search from java sdk</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75451#M10329</link>
      <description>&lt;P&gt;job.cancel() will remove that particular job from the saved search's history ... if that's what you are asking.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 17:57:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75451#M10329</guid>
      <dc:creator>Neeraj_Luthra</dc:creator>
      <dc:date>2013-04-01T17:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to call scheduled saved search from java sdk</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75452#M10330</link>
      <description>&lt;P&gt;Yes.Thanks for clarification&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 18:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75452#M10330</guid>
      <dc:creator>bubby248</dc:creator>
      <dc:date>2013-04-01T18:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to call scheduled saved search from java sdk</title>
      <link>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75453#M10331</link>
      <description>&lt;P&gt;i m not getting the results... because the search has stats count in the search. how to fix it&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 04:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/How-to-call-scheduled-saved-search-from-java-sdk/m-p/75453#M10331</guid>
      <dc:creator>kicksammy</dc:creator>
      <dc:date>2015-02-19T04:40:14Z</dc:date>
    </item>
  </channel>
</rss>

