<?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: Splunk Java SDK: How do you query a macro defined in a custom app instead of the default splunk search app? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9491#M37</link>
    <description>&lt;P&gt;The Java SDK supports namespaces for exactly this reason.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2012 16:26:42 GMT</pubDate>
    <dc:creator>wcolgate_splunk</dc:creator>
    <dc:date>2012-07-06T16:26:42Z</dc:date>
    <item>
      <title>Splunk Java SDK: How do you query a macro defined in a custom app instead of the default splunk search app?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9486#M32</link>
      <description>&lt;P&gt;I have a custom app defined. I want to query a macro defined in it. The samples provided here (&lt;A href="http://code.google.com/p/splunk-java-sdk/w/list" rel="nofollow"&gt;http://code.google.com/p/splunk-java-sdk/w/list&lt;/A&gt;) call splunk's search app by default. How do I get it to call my custom app instead?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2010 07:52:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9486#M32</guid>
      <dc:creator>dinh</dc:creator>
      <dc:date>2010-01-25T07:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Java SDK: How do you query a macro defined in a custom app instead of the default splunk search app?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9487#M33</link>
      <description>&lt;P&gt;If you are using the SDK from the current source, you can specify an optional &lt;CODE&gt;namespace&lt;/CODE&gt; parameter when dispatching a job to target a specific app.  See the inline docs here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://code.google.com/p/splunk-java-sdk/source/browse/trunk/SplunkSDK/src/com/splunk/sdk4x/search/JobParameters.java" rel="nofollow"&gt;http://code.google.com/p/splunk-java-sdk/source/browse/trunk/SplunkSDK/src/com/splunk/sdk4x/search/JobParameters.java&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Note that the SDK is not considered stable for 4.0.  &lt;A href="http://answers.splunk.com/questions/12/are-there-sdks-available-for-splunk-4-0" rel="nofollow"&gt;Read more about Splunk's SDKs and APIs&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2010 02:17:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9487#M33</guid>
      <dc:creator>Johnvey</dc:creator>
      <dc:date>2010-01-26T02:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Java SDK: How do you query a macro defined in a custom app instead of the default splunk search app?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9488#M34</link>
      <description>&lt;P&gt;I set the namespace in the my job parameters and I see it go out on the POST, but it is still not working. I get the same error as before which is that it could not find the macro. I'm wondering if the REST api is even looking at the namespace parameter.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2010 06:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9488#M34</guid>
      <dc:creator>dinh</dc:creator>
      <dc:date>2010-01-26T06:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Java SDK: How do you query a macro defined in a custom app instead of the default splunk search app?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9489#M35</link>
      <description>&lt;P&gt;It looks like this was answered in another post. The trick is to instead of sending it to the following path:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;POST &lt;A href="https://splunkserver.local:8089/services/search/jobs" target="test_blank"&gt;https://splunkserver.local:8089/services/search/jobs&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Send it to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;POST &lt;A href="https://splunkserver:8089/servicesNS/YOUR_USERNAME/TARGET_NAMESPACE/search/jobs" target="test_blank"&gt;https://splunkserver:8089/servicesNS/YOUR_USERNAME/TARGET_NAMESPACE/search/jobs&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Feb 2010 03:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9489#M35</guid>
      <dc:creator>dinh</dc:creator>
      <dc:date>2010-02-04T03:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Java SDK: How do you query a macro defined in a custom app instead of the default splunk search app?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9490#M36</link>
      <description>&lt;P&gt;We are currently building out a new Java SDK. It will be available on GitHub. I can give pre-release access - just need a GitHub ID.&lt;/P&gt;

&lt;P&gt;Any questions - &lt;A href="mailto:psanford@splunk.com"&gt;psanford@splunk.com&lt;/A&gt; or ping us on Twitter: @splunkdev&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 17:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9490#M36</guid>
      <dc:creator>psanford_splunk</dc:creator>
      <dc:date>2011-09-28T17:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Java SDK: How do you query a macro defined in a custom app instead of the default splunk search app?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9491#M37</link>
      <description>&lt;P&gt;The Java SDK supports namespaces for exactly this reason.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2012 16:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9491#M37</guid>
      <dc:creator>wcolgate_splunk</dc:creator>
      <dc:date>2012-07-06T16:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Java SDK: How do you query a macro defined in a custom app instead of the default splunk search app?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9492#M38</link>
      <description>&lt;P&gt;While the URLs are correct, the Java SDK (which the OP refers to), supports namespaces. There is a description here: &lt;A href="http://dev.splunk.com/view/SP-CAAAECN#namespaces"&gt;http://dev.splunk.com/view/SP-CAAAECN#namespaces&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2012 17:52:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-Java-SDK-How-do-you-query-a-macro-defined-in-a-custom-app/m-p/9492#M38</guid>
      <dc:creator>wcolgate_splunk</dc:creator>
      <dc:date>2012-08-14T17:52:23Z</dc:date>
    </item>
  </channel>
</rss>

