<?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: search/jobs/export  does not return  results  with empty column headers in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/search-jobs-export-does-not-return-results-with-empty-column/m-p/54195#M10477</link>
    <description>&lt;P&gt;Thanks Mus,for your answer.&lt;BR /&gt;
I have 'n'number of columns.Adding 'fillnull' with all the Columnn names for each query, its hard.&lt;/P&gt;

&lt;P&gt;Same macro in 'Search Head' thru Web GUI,the macro result contains all the column names (if data not exist,it displays empty).But in rest api(specifically /jobs/export) why its not returning all the columns.&lt;/P&gt;

&lt;P&gt;/jobs/{search_id}/results url gives the expected results then why /jobs/export suppress the columns which not have data.&lt;/P&gt;

&lt;P&gt;I expected all the column names(heading) should be returned with the result even it have data or not.&lt;/P&gt;

&lt;P&gt;Is there any other way ? Plz help me.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2013 07:46:38 GMT</pubDate>
    <dc:creator>testingteam</dc:creator>
    <dc:date>2013-06-05T07:46:38Z</dc:date>
    <item>
      <title>search/jobs/export  does not return  results  with empty column headers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-jobs-export-does-not-return-results-with-empty-column/m-p/54193#M10475</link>
      <description>&lt;P&gt;I using the following command to retrieve a particular macro search result.&lt;/P&gt;

&lt;P&gt;curl -k -u admin:admin https://&lt;IP&gt;:8089/services/search/jobs/export --data search="search `network_macro(index_name,report_name,server_name,1h)`" -d output_mode=csv&lt;/IP&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Expected result:&lt;/STRONG&gt;&lt;BR /&gt;
 "_time",ServerName,Freq,Bandwidth&lt;BR /&gt;
"2013-06-03 06:00:00.000 UTC",server1,"74.730000",""&lt;BR /&gt;
"2013-06-03 07:00:00.000 UTC",server2,"74.730000",""&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;But the actual result is :&lt;/STRONG&gt;&lt;BR /&gt;
"_time",ServerName,Freq&lt;BR /&gt;
"2013-06-03 06:00:00.000 UTC",server1,"74.730000"&lt;BR /&gt;
"2013-06-03 07:00:00.000 UTC",server2,"74.730000"&lt;/P&gt;

&lt;P&gt;The column  that have empty result has not been returned.&lt;/P&gt;

&lt;P&gt;But it is worked well while using &lt;BR /&gt;
 search/jobs/{search_id}&lt;BR /&gt;
 search/jobs/{search_id}/results  commands.&lt;BR /&gt;
I am using Splunk 4.3.1 .&lt;/P&gt;

&lt;P&gt;How can we get those empty result columns by using the search/jobs/export url.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:02:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-jobs-export-does-not-return-results-with-empty-column/m-p/54193#M10475</guid>
      <dc:creator>testingteam</dc:creator>
      <dc:date>2020-09-28T14:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: search/jobs/export  does not return  results  with empty column headers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-jobs-export-does-not-return-results-with-empty-column/m-p/54194#M10476</link>
      <description>&lt;P&gt;Hi testingteam&lt;/P&gt;

&lt;P&gt;try to use your search with the &lt;CODE&gt;fillnull&lt;/CODE&gt; command, read more here &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Fillnull"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Fillnull&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope this helps, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2013 09:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-jobs-export-does-not-return-results-with-empty-column/m-p/54194#M10476</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-06-04T09:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: search/jobs/export  does not return  results  with empty column headers</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-jobs-export-does-not-return-results-with-empty-column/m-p/54195#M10477</link>
      <description>&lt;P&gt;Thanks Mus,for your answer.&lt;BR /&gt;
I have 'n'number of columns.Adding 'fillnull' with all the Columnn names for each query, its hard.&lt;/P&gt;

&lt;P&gt;Same macro in 'Search Head' thru Web GUI,the macro result contains all the column names (if data not exist,it displays empty).But in rest api(specifically /jobs/export) why its not returning all the columns.&lt;/P&gt;

&lt;P&gt;/jobs/{search_id}/results url gives the expected results then why /jobs/export suppress the columns which not have data.&lt;/P&gt;

&lt;P&gt;I expected all the column names(heading) should be returned with the result even it have data or not.&lt;/P&gt;

&lt;P&gt;Is there any other way ? Plz help me.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 07:46:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-jobs-export-does-not-return-results-with-empty-column/m-p/54195#M10477</guid>
      <dc:creator>testingteam</dc:creator>
      <dc:date>2013-06-05T07:46:38Z</dc:date>
    </item>
  </channel>
</rss>

