<?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 to extract csv files with common fields in the header? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642588#M109528</link>
    <description>&lt;P&gt;Yes, Python script is always an option, but I was wondering if it is possible without that. Something like &lt;STRONG&gt;KV_MODE=multi&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 04:27:44 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2023-05-09T04:27:44Z</dc:date>
    <item>
      <title>How to extract csv files with common fields in the header?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642528#M109508</link>
      <description>&lt;P&gt;Below is my CSV file format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Time Span:,Full Time-span
Rate:,Cumulative
Scope:,Net
This is Table Header
Field1,Field2,Field3,Field4
Total1,/,1.20%,2.34%,N/A
Total2,/Total2,1.20%,2.05%,N/A
Total3,/Total/Total3,1.20%,N/A,N/A
Effect4,/Total/Total4,0.00%,N/A,N/A&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Here first 3 lines are common fields and values.&lt;/LI&gt;
&lt;LI&gt;4th line is the table header (willing to extract that as a field as well if possible)&lt;/LI&gt;
&lt;LI&gt;The rest is the actual CSV file, I would like to extract it as field value pairs.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 13:14:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642528#M109508</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-05-08T13:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract csv files with common fields in the header?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642540#M109513</link>
      <description>&lt;P&gt;What have you tried so far?&amp;nbsp; Have you tried something like this in props.conf?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
INDEXED_EXTRACTIONS = csv
HEADER_FIELD_LINE_NUMBER = 4
DATETIME_CONFIG = current&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 May 2023 13:55:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642540#M109513</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-08T13:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract csv files with common fields in the header?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642548#M109519</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;- This is helpful. Thanks!!!&lt;/P&gt;&lt;P&gt;But I would like to include common fields from the header to all the events, not sure if that is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 16:42:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642548#M109519</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-05-08T16:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract csv files with common fields in the header?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642550#M109521</link>
      <description>&lt;P&gt;To do that you'll have to write a scripted input that parses the CSV and copies the common fields to each line in the file.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 16:52:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642550#M109521</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-08T16:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract csv files with common fields in the header?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642588#M109528</link>
      <description>&lt;P&gt;Yes, Python script is always an option, but I was wondering if it is possible without that. Something like &lt;STRONG&gt;KV_MODE=multi&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 04:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642588#M109528</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-05-09T04:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract csv files with common fields in the header?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642657#M109543</link>
      <description>&lt;P&gt;There is no setting that does what you desire.&amp;nbsp; &lt;FONT face="courier new,courier"&gt;KV_MODE = multi&lt;/FONT&gt; extracts fields from table-formatted data.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 12:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-csv-files-with-common-fields-in-the-header/m-p/642657#M109543</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-09T12:43:06Z</dc:date>
    </item>
  </channel>
</rss>

