<?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: Why is REST API removing a leading pipe before an &amp;quot;inputcsv&amp;quot; command? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255255#M49021</link>
    <description>&lt;P&gt;Hey @kcnolan13,&lt;BR /&gt;
I just heard back from our engineering team and there is an issue with the script as shown in the docs. Specifically, the issue is where it checks for queries starting with 'search' and then prepends 'search' if it's not found. Here is an updated script that should fix the problem. Note this update here:&lt;/P&gt;

&lt;P&gt;" # If the query doesn't already start with the 'search' operator or another &lt;BR /&gt;
 # generating command (e.g. "| inputcsv"), then prepend "search " to it.&lt;BR /&gt;
 if not (searchQuery.startswith('search') or searchQuery.startswith("|")):&lt;BR /&gt;
     searchQuery = 'search ' + searchQuery"&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
&lt;/CODE&gt;I will update the docs. Let me know how this works for you!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import urllib
import httplib2
from xml.dom import minidom

baseurl = 'https://re-latitude.sv.splunk.com:8089'
userName = 'guest'
password = 'guest'

searchQuery = '| inputcsv foo.csv | where sourcetype=access_common | head 5'

# Authenticate with server.
# Disable SSL cert validation. Splunk certs are self-signed.
serverContent = httplib2.Http(disable_ssl_certificate_validation=True).request(baseurl + '/services/auth/login',
    'POST', headers={}, body=urllib.urlencode({'username':userName, 'password':password}))[1]

sessionKey = minidom.parseString(serverContent).getElementsByTagName('sessionKey')[0].childNodes[0].nodeValue

# Remove leading and trailing whitespace from the search
searchQuery = searchQuery.strip()

# If the query doesn't already start with the 'search' operator or another 
# generating command (e.g. "| inputcsv"), then prepend "search " to it.
if not (searchQuery.startswith('search') or searchQuery.startswith("|")):
    searchQuery = 'search ' + searchQuery

print searchQuery

# Run the search.
# Again, disable SSL cert validation. 
print httplib2.Http(disable_ssl_certificate_validation=True).request(baseurl + '/services/search/jobs','POST',
    headers={'Authorization': 'Splunk %s' % sessionKey},body=urllib.urlencode({'search': searchQuery}))[1]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 27 Jan 2017 20:06:37 GMT</pubDate>
    <dc:creator>frobinson_splun</dc:creator>
    <dc:date>2017-01-27T20:06:37Z</dc:date>
    <item>
      <title>Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255239#M49005</link>
      <description>&lt;P&gt;It appears that my use of the REST API is somehow causing a leading pipe to be stripped before an inputcsv command. I have this python search string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; "| inputcsv scale_med_validation_data | apply fastflux_model | where 'predicted(is_attack)' = 1 | eval t = now()+3600*1 | eval report_hour=strftime(t, "%H") | eval report_date=strftime(t, "%m/%d/%Y") | tail 50 | collect index=fastflux_summary"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works as desired when entered manually through the web interface.&lt;/P&gt;

&lt;P&gt;However, when submitted through the REST API, the jobs screen shows the search query missing the leading pipe:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"inputcsv scale_med_validation_data | apply fastflux_model | where 'predicted(is_attack)' = 1 | eval t = now()+3600*1 | eval report_hour=strftime(t, "%H") | eval report_date=strftime(t, "%m/%d/%Y") | tail 50 | collect index=fastflux_summary"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Naturally, this causes the inputcsv to fail, and so none of the REST API jobs succeed. Why might the leading pipe not be making it through here?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 20:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255239#M49005</guid>
      <dc:creator>kcnolan13</dc:creator>
      <dc:date>2017-01-26T20:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255240#M49006</link>
      <description>&lt;P&gt;Hi @kcnolan13,&lt;BR /&gt;
What endpoint are you using to submit the search? &lt;/P&gt;

&lt;P&gt;Have you tried escaping the pipe character? &lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 20:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255240#M49006</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2017-01-26T20:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255241#M49007</link>
      <description>&lt;P&gt;My base URL is &lt;A href="https://xx.xx.xx.xx:8089/"&gt;https://xx.xx.xx.xx:8089/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What method of escaping are you referring to? I tried sticking a "\" in front of the leading pipe, but only ended up with a parse error.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255241#M49007</guid>
      <dc:creator>kcnolan13</dc:creator>
      <dc:date>2017-01-26T21:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255242#M49008</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"search | inputcsv ..."
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:23:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255242#M49008</guid>
      <dc:creator>GregZillgitt</dc:creator>
      <dc:date>2017-01-26T21:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255243#M49009</link>
      <description>&lt;P&gt;Believe it or not, that hasn't worked either. The "search |" is stripped off and all that shows up in the job viewer query window is still: "inputcsv scale_med_validation_data | apply fastflux_model | where 'predicted(is_attack)' = 1 | eval t = now()+3600*1 | eval report_hour=strftime(t, "%H") | eval report_date=strftime(t, "%m/%d/%Y") | tail 50 | collect index=fastflux_summary"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:33:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255243#M49009</guid>
      <dc:creator>kcnolan13</dc:creator>
      <dc:date>2020-09-29T12:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255244#M49010</link>
      <description>&lt;P&gt;Ok, it looks like you are using the correct management port to submit the request. But what endpoint are you using to submit the search? Are you creating a saved search and then retrieving the results? Are you using an SDK or is there anything else about how you are submitting the search that might help troubleshoot? &lt;/P&gt;

&lt;P&gt;It might be good to get more context before going further with escaping characters. That might not be the issue. &lt;/P&gt;

&lt;P&gt;For extensive troubleshooting, it might also be helpful to contact support.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255244#M49010</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2017-01-26T21:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255245#M49011</link>
      <description>&lt;P&gt;I'm using a nearly identical Python script to the example shown &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1/RESTAPI/RESTsearches"&gt;here&lt;/A&gt;: &lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255245#M49011</guid>
      <dc:creator>kcnolan13</dc:creator>
      <dc:date>2017-01-26T21:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255246#M49012</link>
      <description>&lt;P&gt;The important part probably being:&lt;/P&gt;

&lt;P&gt;sid = httplib2.Http(disable_ssl_certificate_validation=True).request(baseurl + '/services/search/jobs','POST',&lt;BR /&gt;
        headers={'Authorization': 'Splunk %s' % sessionKey},body=urllib.urlencode({'search': searchQuery}))[1]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255246#M49012</guid>
      <dc:creator>kcnolan13</dc:creator>
      <dc:date>2020-09-29T12:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255247#M49013</link>
      <description>&lt;P&gt;ok, how about &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search index=* | head 1 | eval foo="deleteme" | inputcsv ... | blah blah blah| search NOT foo="deleteme"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(just out of curiosity)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255247#M49013</guid>
      <dc:creator>GregZillgitt</dc:creator>
      <dc:date>2017-01-26T21:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255248#M49014</link>
      <description>&lt;P&gt;Yeah, I've tried that kind of thing too, but you get this:&lt;/P&gt;

&lt;P&gt;"Error in 'inputcsv' command: This command must be the first command of a search."&lt;/P&gt;

&lt;P&gt;Good thought though.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255248#M49014</guid>
      <dc:creator>kcnolan13</dc:creator>
      <dc:date>2017-01-26T21:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255249#M49015</link>
      <description>&lt;P&gt;Thanks for the info. I have an active request in to our engineering team to review the Python example here and will add your question/issue to this.&lt;/P&gt;

&lt;P&gt;In the meantime, in case it is possible to consider alternatives, there is a Python SDK for developers that might be helpful to you, with info on creating + running searches here:&lt;BR /&gt;
&lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEE5"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEE5&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255249#M49015</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2017-01-26T21:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255250#M49016</link>
      <description>&lt;P&gt;Thanks @frobinson. I'm aware of the SDK, but hoped I could just bang out this small task with a modified version of the example Python script. I hope the developers fix this issue, if it is indeed on their end.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:45:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255250#M49016</guid>
      <dc:creator>kcnolan13</dc:creator>
      <dc:date>2017-01-26T21:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255251#M49017</link>
      <description>&lt;P&gt;I understand. I've pinged some folks again about this, will post again here if I get an update. Sorry for the confusion! &lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255251#M49017</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2017-01-26T21:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255252#M49018</link>
      <description>&lt;P&gt;Oh crap, that's right.&lt;/P&gt;

&lt;P&gt;How about putting the "|inputcsv..." in a macro? Then...&lt;/P&gt;

&lt;P&gt;search `foo` | blah blah... &lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:55:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255252#M49018</guid>
      <dc:creator>GregZillgitt</dc:creator>
      <dc:date>2017-01-26T21:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255253#M49019</link>
      <description>&lt;P&gt;Nice workaround. I'll give it a shot tomorrow and see if it takes.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 23:48:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255253#M49019</guid>
      <dc:creator>kcnolan13</dc:creator>
      <dc:date>2017-01-26T23:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255254#M49020</link>
      <description>&lt;P&gt;Something else to try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search * | head 1 | append [|inputcsv foo.csv | blah ] | blah
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Might run into issues if your csv is large (e.g. &amp;gt;50K rows)&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 14:59:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255254#M49020</guid>
      <dc:creator>GregZillgitt</dc:creator>
      <dc:date>2017-01-27T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255255#M49021</link>
      <description>&lt;P&gt;Hey @kcnolan13,&lt;BR /&gt;
I just heard back from our engineering team and there is an issue with the script as shown in the docs. Specifically, the issue is where it checks for queries starting with 'search' and then prepends 'search' if it's not found. Here is an updated script that should fix the problem. Note this update here:&lt;/P&gt;

&lt;P&gt;" # If the query doesn't already start with the 'search' operator or another &lt;BR /&gt;
 # generating command (e.g. "| inputcsv"), then prepend "search " to it.&lt;BR /&gt;
 if not (searchQuery.startswith('search') or searchQuery.startswith("|")):&lt;BR /&gt;
     searchQuery = 'search ' + searchQuery"&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
&lt;/CODE&gt;I will update the docs. Let me know how this works for you!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;import urllib
import httplib2
from xml.dom import minidom

baseurl = 'https://re-latitude.sv.splunk.com:8089'
userName = 'guest'
password = 'guest'

searchQuery = '| inputcsv foo.csv | where sourcetype=access_common | head 5'

# Authenticate with server.
# Disable SSL cert validation. Splunk certs are self-signed.
serverContent = httplib2.Http(disable_ssl_certificate_validation=True).request(baseurl + '/services/auth/login',
    'POST', headers={}, body=urllib.urlencode({'username':userName, 'password':password}))[1]

sessionKey = minidom.parseString(serverContent).getElementsByTagName('sessionKey')[0].childNodes[0].nodeValue

# Remove leading and trailing whitespace from the search
searchQuery = searchQuery.strip()

# If the query doesn't already start with the 'search' operator or another 
# generating command (e.g. "| inputcsv"), then prepend "search " to it.
if not (searchQuery.startswith('search') or searchQuery.startswith("|")):
    searchQuery = 'search ' + searchQuery

print searchQuery

# Run the search.
# Again, disable SSL cert validation. 
print httplib2.Http(disable_ssl_certificate_validation=True).request(baseurl + '/services/search/jobs','POST',
    headers={'Authorization': 'Splunk %s' % sessionKey},body=urllib.urlencode({'search': searchQuery}))[1]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jan 2017 20:06:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255255#M49021</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2017-01-27T20:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255256#M49022</link>
      <description>&lt;P&gt;So, the macro option doesn't work because unfortunately you still get this:&lt;/P&gt;

&lt;P&gt;"Error in 'inputcsv' command: This command must be the first command of a search."&lt;/P&gt;

&lt;P&gt;And I'm working with some large CSV files, so the other suggestion isn't ideal for this use case.&lt;/P&gt;

&lt;P&gt;Any other tricks up your sleeve?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 20:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255256#M49022</guid>
      <dc:creator>kcnolan13</dc:creator>
      <dc:date>2017-01-27T20:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255257#M49023</link>
      <description>&lt;P&gt;Nice catch, that was it!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 20:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255257#M49023</guid>
      <dc:creator>kcnolan13</dc:creator>
      <dc:date>2017-01-27T20:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why is REST API removing a leading pipe before an "inputcsv" command?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255258#M49024</link>
      <description>&lt;P&gt;Awesome! Glad to hear it.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 20:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-REST-API-removing-a-leading-pipe-before-an-quot-inputcsv/m-p/255258#M49024</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2017-01-27T20:36:44Z</dc:date>
    </item>
  </channel>
</rss>

