<?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: using curl to run REST_API in linux do not return fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410108#M118312</link>
    <description>&lt;P&gt;Hi David,&lt;/P&gt;

&lt;P&gt;It was a permissions state.&lt;BR /&gt;
thank you.&lt;/P&gt;

&lt;P&gt;SS&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 09:29:11 GMT</pubDate>
    <dc:creator>ssaenger</dc:creator>
    <dc:date>2019-03-04T09:29:11Z</dc:date>
    <item>
      <title>using curl to run REST_API in linux do not return fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410105#M118309</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;i am trying to use Curl to return a search as my result will be &lt;STRONG&gt;&amp;gt;6million&lt;/STRONG&gt; to a csv file.&lt;BR /&gt;
using the command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u un:pw &lt;A href="https://our_splunk.com:8089/services/search/jobs/export" target="test_blank"&gt;https://our_splunk.com:8089/services/search/jobs/export&lt;/A&gt; --data-urlencode search='search index=foo sourcetype=bar report | table subid cardid panelid' -d output_mode=csv -d earliest=-6h max_time=0 -o filename.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this returns the below to &lt;CODE&gt;filename.csv&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;subid,cardid,panelid
,,
,,
,,
,,
,,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If i take the table request out and use the fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u un:pw &lt;A href="https://our_splunk.com:8089/services/search/jobs/export" target="test_blank"&gt;https://our_splunk.com:8089/services/search/jobs/export&lt;/A&gt; --data-urlencode search='search index=foo sourcetype=bar report | fields subid cardid panelid' -d output_mode=csv -d earliest=-6h max_time=0 -o filename.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This returns the whole log line below to &lt;CODE&gt;filename.csv&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"2019-02-27 11:49:37.772 GMT","2019/02/27 11:49:37.772 [SenderFile] [c-11]:   INFO:  Report saved to /apps/box_20190227114937772_77777740_5_892222_1223.xml"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this instance the fields i am trying to put into a table are:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;subid 77777740
cardid 892222
panelid 5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When i include table to extract the fields, I don't get anything returned:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u un:pw &lt;A href="https://our_splunk.com:8089/services/search/jobs/export" target="test_blank"&gt;https://our_splunk.com:8089/services/search/jobs/export&lt;/A&gt; --data-urlencode search='search index=foo sourcetype=bar report | fields subid cardid panelid |table subid cardid panelid' -d output_mode=csv -d earliest=-6h max_time=0 -o filename.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;any advice would be grateful.&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 12:21:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410105#M118309</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2019-02-27T12:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: using curl to run REST_API in linux do not return fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410106#M118310</link>
      <description>&lt;P&gt;What happens when you do this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k -u un:pw &lt;A href="https://our_splunk.com:8089/services/search/jobs/export" target="test_blank"&gt;https://our_splunk.com:8089/services/search/jobs/export&lt;/A&gt; --data-urlencode search='search index=foo sourcetype=bar report | table subid cardid panelid' -d output_mode=csv -d earliest=-6h max_time=0 -o filename.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 Mar 2019 02:49:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410106#M118310</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-03-03T02:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: using curl to run REST_API in linux do not return fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410107#M118311</link>
      <description>&lt;P&gt;Hi @ssaenger,&lt;/P&gt;

&lt;P&gt;Have you verified that your field extraction is working properly and that their permissions are not set to private ? &lt;/P&gt;

&lt;P&gt;Could you please share that config ?&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 03:46:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410107#M118311</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-03-03T03:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: using curl to run REST_API in linux do not return fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410108#M118312</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;

&lt;P&gt;It was a permissions state.&lt;BR /&gt;
thank you.&lt;/P&gt;

&lt;P&gt;SS&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 09:29:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410108#M118312</guid>
      <dc:creator>ssaenger</dc:creator>
      <dc:date>2019-03-04T09:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: using curl to run REST_API in linux do not return fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410109#M118313</link>
      <description>&lt;P&gt;OK, so post the specifics as a new answer and click &lt;CODE&gt;Accept&lt;/CODE&gt; on that answer to close the question.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 06:34:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410109#M118313</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-03-06T06:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: using curl to run REST_API in linux do not return fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410110#M118314</link>
      <description>&lt;P&gt;You're welcome ! Feel free to accept the answer &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 14:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/using-curl-to-run-REST-API-in-linux-do-not-return-fields/m-p/410110#M118314</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-03-06T14:25:55Z</dc:date>
    </item>
  </channel>
</rss>

