<?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 Splunk search with PowerShell SDK using inputlooup in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196639#M2647</link>
    <description>&lt;P&gt;I'm trying to use the PowerShell Splunk SDK to gather information that we have saved in a lookup file. When I attempt to search with &lt;CODE&gt;Search-Splunk -Search "| inputlookup file.csv"&lt;/CODE&gt; I receive the following error message: Error in 'inputlookup' command: This command must be the first command of a search. Also, Unexpected XML declaration. &lt;/P&gt;

&lt;P&gt;The search in double quotes works fine from the web interface, but fails when using the PowerShell SDK. Is this an issue with how the REST API handles searches? Has anyone come across this before or know of any solutions? Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2014 15:26:30 GMT</pubDate>
    <dc:creator>kraber</dc:creator>
    <dc:date>2014-03-20T15:26:30Z</dc:date>
    <item>
      <title>Splunk search with PowerShell SDK using inputlooup</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196639#M2647</link>
      <description>&lt;P&gt;I'm trying to use the PowerShell Splunk SDK to gather information that we have saved in a lookup file. When I attempt to search with &lt;CODE&gt;Search-Splunk -Search "| inputlookup file.csv"&lt;/CODE&gt; I receive the following error message: Error in 'inputlookup' command: This command must be the first command of a search. Also, Unexpected XML declaration. &lt;/P&gt;

&lt;P&gt;The search in double quotes works fine from the web interface, but fails when using the PowerShell SDK. Is this an issue with how the REST API handles searches? Has anyone come across this before or know of any solutions? Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 15:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196639#M2647</guid>
      <dc:creator>kraber</dc:creator>
      <dc:date>2014-03-20T15:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search with PowerShell SDK using inputlooup</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196640#M2648</link>
      <description>&lt;P&gt;I haven't tried that myself, but isn't it just telling you to leave off the "|" or to make it "search|" ?? I think the rest endpoint needs you to be explicit about search, where the web UI implies it.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 17:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196640#M2648</guid>
      <dc:creator>jbennett_splunk</dc:creator>
      <dc:date>2014-03-21T17:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search with PowerShell SDK using inputlooup</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196641#M2649</link>
      <description>&lt;P&gt;Leaving off the pipe returns no results. Adding "Search |" throws the same error text as just having the pipe. I dug through the Search-Splunk command, it prepends/adds the implied search when in invokes the REST API. I also tried using the REST API with the format of how Search-Splunk is coded with no success.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 17:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196641#M2649</guid>
      <dc:creator>kraber</dc:creator>
      <dc:date>2014-03-21T17:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search with PowerShell SDK using inputlooup</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196642#M2650</link>
      <description>&lt;P&gt;Does a simple keyword search work?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 18:15:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196642#M2650</guid>
      <dc:creator>halr9000</dc:creator>
      <dc:date>2014-03-21T18:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search with PowerShell SDK using inputlooup</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196643#M2651</link>
      <description>&lt;P&gt;Ok, I change my answer to ... the opposite of what I said the first time. The problem is that the cmdlet is ADDING the "Search" ...&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 18:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196643#M2651</guid>
      <dc:creator>jbennett_splunk</dc:creator>
      <dc:date>2014-03-21T18:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search with PowerShell SDK using inputlooup</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196644#M2652</link>
      <description>&lt;P&gt;A simple keyword search did work and returned results. I attempted to use their REST implementation and left out the "search" No dice.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 11:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196644#M2652</guid>
      <dc:creator>kraber</dc:creator>
      <dc:date>2014-03-25T11:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search with PowerShell SDK using inputlooup</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196645#M2653</link>
      <description>&lt;P&gt;Ran into this today too. I added a search to a non-existent index to the beginning and changed the inputlookup to append:&lt;/P&gt;

&lt;P&gt;index=fakeindex | inputlookup append=t file.csv&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 13:20:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-search-with-PowerShell-SDK-using-inputlooup/m-p/196645#M2653</guid>
      <dc:creator>jmccord</dc:creator>
      <dc:date>2015-09-24T13:20:20Z</dc:date>
    </item>
  </channel>
</rss>

