<?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 search custom fields from Splunk SDK? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-search-custom-fields-from-Splunk-SDK/m-p/337678#M5131</link>
    <description>&lt;P&gt;@micahkemp that actually did help but not for the reason you would think...turns out it was a dumb mistake on my part, I had two variables declared named search and searchStr and i mixed the two up and was passing in the wrong one without the 'search' part at the beginning. Stupid mistake but thanks for the tip&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2017 17:26:15 GMT</pubDate>
    <dc:creator>scottmacdonald</dc:creator>
    <dc:date>2017-12-12T17:26:15Z</dc:date>
    <item>
      <title>How to search custom fields from Splunk SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-search-custom-fields-from-Splunk-SDK/m-p/337675#M5128</link>
      <description>&lt;P&gt;I can't find documentation anywhere on how to format search strings for the Splunk SDK. Every single example provided just uses:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;search index=_internal | head 10&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I'm just trying to search on a custom field I use in my application, so I thought this would work:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;search index=myindex  mycustomfield=xyz&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;but that just gives me an error: Bad Request: FATAL: Unknown search command mycustomfield&lt;/P&gt;

&lt;P&gt;How do I format this as I want? And perhaps more importantly where  is this documented how the SDK expects requests to be formatted?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 15:12:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-search-custom-fields-from-Splunk-SDK/m-p/337675#M5128</guid>
      <dc:creator>scottmacdonald</dc:creator>
      <dc:date>2017-12-12T15:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to search custom fields from Splunk SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-search-custom-fields-from-Splunk-SDK/m-p/337676#M5129</link>
      <description>&lt;P&gt;Hi scott, &lt;/P&gt;

&lt;P&gt;Can you provide us with a sample of the code you're using to get this error?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 15:56:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-search-custom-fields-from-Splunk-SDK/m-p/337676#M5129</guid>
      <dc:creator>damien_chillet</dc:creator>
      <dc:date>2017-12-12T15:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to search custom fields from Splunk SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-search-custom-fields-from-Splunk-SDK/m-p/337677#M5130</link>
      <description>&lt;P&gt;See if this &lt;A href="https://answers.splunk.com/answers/597555/error-search-factory-unknown-search-command-1.html#answer-597255"&gt;answer&lt;/A&gt; from yesterday helps.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 16:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-search-custom-fields-from-Splunk-SDK/m-p/337677#M5130</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-12-12T16:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to search custom fields from Splunk SDK?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-search-custom-fields-from-Splunk-SDK/m-p/337678#M5131</link>
      <description>&lt;P&gt;@micahkemp that actually did help but not for the reason you would think...turns out it was a dumb mistake on my part, I had two variables declared named search and searchStr and i mixed the two up and was passing in the wrong one without the 'search' part at the beginning. Stupid mistake but thanks for the tip&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 17:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-search-custom-fields-from-Splunk-SDK/m-p/337678#M5131</guid>
      <dc:creator>scottmacdonald</dc:creator>
      <dc:date>2017-12-12T17:26:15Z</dc:date>
    </item>
  </channel>
</rss>

