<?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: How can I extract fields based on headers from a CSV file in .gz format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154511#M43456</link>
    <description>&lt;P&gt;Hi, for normal csv file it's working fine. But filename.csv.gz it didn't work as expected. Please let me know for. Gz file extension any other process we need to follow? &lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2015 06:50:40 GMT</pubDate>
    <dc:creator>jkponnuri</dc:creator>
    <dc:date>2015-09-01T06:50:40Z</dc:date>
    <item>
      <title>How can I extract fields based on headers from a CSV file in .gz format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154505#M43450</link>
      <description>&lt;P&gt;I tried providing a csv file location in inputs.conf, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///path/to/*.csv.gz]
source = testcsv
sourcetype = testcsvlog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELD_DELIMITER=,
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;RAW data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Field1", "Field2","Field3" ,"Field4"
"value1","value2","value3","value4"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I am unable to view the fields based on headers. Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 16:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154505#M43450</guid>
      <dc:creator>jkponnuri</dc:creator>
      <dc:date>2015-08-04T16:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract fields based on headers from a CSV file in .gz format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154506#M43451</link>
      <description>&lt;P&gt;Hello @jkponnuri,&lt;BR /&gt;
I am a tech writer at Splunk and I'd like to help with your question. I wanted to suggest a couple of documentation topics as a start.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Data/Aboutindexedfieldextraction"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.4/Data/Aboutindexedfieldextraction&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.4/Data/Extractfieldsfromfileheadersatindextime"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.4/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps! Let me know, either way, and we can continue troubleshooting.&lt;/P&gt;

&lt;P&gt;All best,&lt;BR /&gt;
@frobinson_splunk&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 16:29:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154506#M43451</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2015-08-04T16:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract fields based on headers from a CSV file in .gz format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154507#M43452</link>
      <description>&lt;P&gt;I just tested a gzip'd .csv file, and got proper extraction with the following inputs stanza:&lt;BR /&gt;
    [monitor:///tmp/*.gz]&lt;BR /&gt;
    index = main&lt;BR /&gt;
    sourcetype = csv&lt;/P&gt;

&lt;P&gt;the sourcetype as csv should do it.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 16:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154507#M43452</guid>
      <dc:creator>jnussbaum_splun</dc:creator>
      <dc:date>2015-08-04T16:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract fields based on headers from a CSV file in .gz format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154508#M43453</link>
      <description>&lt;P&gt;Great, glad you got that working!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:32:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154508#M43453</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2015-08-04T21:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract fields based on headers from a CSV file in .gz format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154509#M43454</link>
      <description>&lt;P&gt;Hi, Thanks for the answer. I tried now. Hope it should work. I will update you once  it work. Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 02:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154509#M43454</guid>
      <dc:creator>jkponnuri</dc:creator>
      <dc:date>2015-08-05T02:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract fields based on headers from a CSV file in .gz format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154510#M43455</link>
      <description>&lt;P&gt;Great--do let me know how it turns out!&lt;BR /&gt;
All best,&lt;BR /&gt;
@frobinson_splunk&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2015 23:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154510#M43455</guid>
      <dc:creator>frobinson_splun</dc:creator>
      <dc:date>2015-08-05T23:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract fields based on headers from a CSV file in .gz format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154511#M43456</link>
      <description>&lt;P&gt;Hi, for normal csv file it's working fine. But filename.csv.gz it didn't work as expected. Please let me know for. Gz file extension any other process we need to follow? &lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2015 06:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154511#M43456</guid>
      <dc:creator>jkponnuri</dc:creator>
      <dc:date>2015-09-01T06:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract fields based on headers from a CSV file in .gz format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154512#M43457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sorry for delay reply. I tried this but csv files are working fine. But not csv.gz files. I am.unable to get field name based on headers.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2015 07:05:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154512#M43457</guid>
      <dc:creator>jkponnuri</dc:creator>
      <dc:date>2015-09-04T07:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I extract fields based on headers from a CSV file in .gz format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154513#M43458</link>
      <description>&lt;P&gt;Somehow managed to work by using sourcetype=csv-2&lt;BR /&gt;
It did worked as expected. Thanks..&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 06:00:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-extract-fields-based-on-headers-from-a-CSV-file-in-gz/m-p/154513#M43458</guid>
      <dc:creator>jkponnuri</dc:creator>
      <dc:date>2015-09-08T06:00:54Z</dc:date>
    </item>
  </channel>
</rss>

