<?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: Full SplunkJS stack usage in SimpleXML extension in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Full-SplunkJS-stack-usage-in-SimpleXML-extension/m-p/155793#M2118</link>
    <description>&lt;P&gt;Following code worked for me:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  var service = mvc.createService();
  var savedSearches = service.savedSearches();

  savedSearches.fetch(function(err, mySavedSearches) {
            // Retrieve a specific saved search
            var mySavedSearch = mySavedSearches.item("saved_search_name");

            // Display some properties
            console.log("Name:                " + mySavedSearch.name);
            console.log("Query:               " + mySavedSearch.properties().search);
            console.log("Description:         " + mySavedSearch.properties().description);
            console.log("Scheduled:           " + mySavedSearch.properties().is_scheduled);
            console.log("Next scheduled time: " + mySavedSearch.properties().next_scheduled_time);
        });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 16 Jun 2016 12:43:52 GMT</pubDate>
    <dc:creator>whatdaface</dc:creator>
    <dc:date>2016-06-16T12:43:52Z</dc:date>
    <item>
      <title>Full SplunkJS stack usage in SimpleXML extension</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Full-SplunkJS-stack-usage-in-SimpleXML-extension/m-p/155791#M2116</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I wanted to use the splunkjs.Service.* classes available in the SplunkJS stack in a SimpleXML extension.&lt;BR /&gt;
But it looks like that in splunk, there's only the mvc part available of the stack:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ls /opt/splunk/share/splunk/search_mrsparkle/exposed/js/splunkjs:
total 332
drwxr-xr-x 2 splunk splunk   4096 Oct 23 02:06 compiled
-r--r--r-- 1 splunk splunk     73 Oct 23 01:33 config.js
drwxr-xr-x 4 splunk splunk   4096 Oct 23 02:06 contrib
drwxr-xr-x 2 splunk splunk   4096 Oct 23 02:06 css
drwxr-xr-x 2 splunk splunk   4096 Oct 23 02:06 generated
drwxr-xr-x 7 splunk splunk   4096 Oct 23 02:06 mvc
-r--r--r-- 1 splunk splunk    109 Oct 23 01:33 mvc.js
-r--r--r-- 1 splunk splunk   7632 Oct 23 01:33 preload.js
-r--r--r-- 1 splunk splunk  19531 Oct 23 01:33 ready.js
-r--r--r-- 1 splunk splunk 234494 Oct 23 01:33 splunk.js
-r--r--r-- 1 splunk splunk  42089 Oct 23 01:33 splunk.min.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can I just add the complete SplunkJS stack to  my app and load it with requirejs or do I get any conflicts? &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Simon&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2014 12:49:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Full-SplunkJS-stack-usage-in-SimpleXML-extension/m-p/155791#M2116</guid>
      <dc:creator>Simon</dc:creator>
      <dc:date>2014-12-10T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Full SplunkJS stack usage in SimpleXML extension</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Full-SplunkJS-stack-usage-in-SimpleXML-extension/m-p/155792#M2117</link>
      <description>&lt;P&gt;I'm also interested in using services part of API and cannot find information about it so far. &lt;BR /&gt;
Have you found out proper way to achieve this?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 00:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Full-SplunkJS-stack-usage-in-SimpleXML-extension/m-p/155792#M2117</guid>
      <dc:creator>whatdaface</dc:creator>
      <dc:date>2016-06-10T00:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Full SplunkJS stack usage in SimpleXML extension</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Full-SplunkJS-stack-usage-in-SimpleXML-extension/m-p/155793#M2118</link>
      <description>&lt;P&gt;Following code worked for me:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  var service = mvc.createService();
  var savedSearches = service.savedSearches();

  savedSearches.fetch(function(err, mySavedSearches) {
            // Retrieve a specific saved search
            var mySavedSearch = mySavedSearches.item("saved_search_name");

            // Display some properties
            console.log("Name:                " + mySavedSearch.name);
            console.log("Query:               " + mySavedSearch.properties().search);
            console.log("Description:         " + mySavedSearch.properties().description);
            console.log("Scheduled:           " + mySavedSearch.properties().is_scheduled);
            console.log("Next scheduled time: " + mySavedSearch.properties().next_scheduled_time);
        });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Jun 2016 12:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Full-SplunkJS-stack-usage-in-SimpleXML-extension/m-p/155793#M2118</guid>
      <dc:creator>whatdaface</dc:creator>
      <dc:date>2016-06-16T12:43:52Z</dc:date>
    </item>
  </channel>
</rss>

