<?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: index empty csv file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337217#M62275</link>
    <description>&lt;P&gt;If you want to create lookup file as place holder&lt;/P&gt;

&lt;P&gt;you can create a null file by running this in search&lt;/P&gt;

&lt;P&gt;|outputlookup yourplaceholderlookupname.csv&lt;/P&gt;</description>
    <pubDate>Tue, 17 Apr 2018 12:21:30 GMT</pubDate>
    <dc:creator>ssadanala1</dc:creator>
    <dc:date>2018-04-17T12:21:30Z</dc:date>
    <item>
      <title>index empty csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337210#M62268</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to know if i can index a csv file with just the headers without any data in it. &lt;/P&gt;

&lt;P&gt;If i search for index=indexname what will i see. and if i try to export the same to a outputfile while will be generated in the output file.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 10:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337210#M62268</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2018-04-16T10:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: index empty csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337211#M62269</link>
      <description>&lt;P&gt;You can index it, but wont see nothing at search time. I have imported a file with header and without data with Splunk Enterprise 7.0.3.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 11:01:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337211#M62269</guid>
      <dc:creator>jvardev</dc:creator>
      <dc:date>2018-04-16T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: index empty csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337212#M62270</link>
      <description>&lt;P&gt;Could you please tell me the requirement to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 11:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337212#M62270</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-16T11:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: index empty csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337213#M62271</link>
      <description>&lt;P&gt;hi @p_gaurav,&lt;/P&gt;

&lt;P&gt;I just want to index a file which has no data in it and just the headers. so that when i search for the index on the seach head i just get the headers shown without any data and the csv generated should have just the headers with no data&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 12:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337213#M62271</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2018-04-16T12:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: index empty csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337214#M62272</link>
      <description>&lt;P&gt;like @p_gurav mentioned, i am not sure regarding this requirement&lt;BR /&gt;
also, when indexing a csv file, splunk will avoid the header if there is no values under it.&lt;BR /&gt;
you can try and use the lookup editor app or use a lookup for this requirement.&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 14:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337214#M62272</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-04-16T14:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: index empty csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337215#M62273</link>
      <description>&lt;P&gt;Assuming you've correct configuration to parse the file data as CSV, and empty-file/just-headers, will not get indexed. Splunk stores raw data with metadata information not just the metadata. Since no results will be shown at search, you won't be able to export or outputfile or outputcsv.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 15:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337215#M62273</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-16T15:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: index empty csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337216#M62274</link>
      <description>&lt;P&gt;Perfect...&lt;/P&gt;

&lt;P&gt;thanks @somesoni2 . You explained really well. &lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 08:43:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337216#M62274</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2018-04-17T08:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: index empty csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337217#M62275</link>
      <description>&lt;P&gt;If you want to create lookup file as place holder&lt;/P&gt;

&lt;P&gt;you can create a null file by running this in search&lt;/P&gt;

&lt;P&gt;|outputlookup yourplaceholderlookupname.csv&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 12:21:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-empty-csv-file/m-p/337217#M62275</guid>
      <dc:creator>ssadanala1</dc:creator>
      <dc:date>2018-04-17T12:21:30Z</dc:date>
    </item>
  </channel>
</rss>

