<?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 index data from a CSV file with 2 header lines in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-data-from-a-CSV-file-with-2-header-lines/m-p/657124#M111271</link>
    <description>&lt;P&gt;I would write a script that converts the CSV into K=V format and run it as a scripted input.&lt;/P&gt;</description>
    <pubDate>Sun, 10 Sep 2023 18:56:49 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-09-10T18:56:49Z</dc:date>
    <item>
      <title>How can I index data from a CSV file with 2 header lines</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-data-from-a-CSV-file-with-2-header-lines/m-p/657117#M111270</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have CSV files&amp;nbsp; (they are exports from the Garmin R10 launch monitor session data via the Garmin Golf app) that contain 2 header lines, the first header line contains the field names and the second header line contains the unit of measurement (or blank if not applicable)&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;Date,Player,Club Name,Club Type,Club Speed,Attack Angle,...&lt;BR /&gt;,,,,[mph],[deg],...&lt;BR /&gt;09/10/23 10:00:45 AM,Johan,7 Iron,7 Iron,70.30108663634557,-7.360383987426758,...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I would like to index the data in one of 2 ways:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add the unit of measurement to the value&lt;OL&gt;&lt;LI&gt;so that would become "70.30108663634557mph" for the Club Speed field&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Add an additional column that contains the unit of measurement&lt;OL&gt;&lt;LI&gt;Add column "Club Speed UOM" with value mph for every line indexed from the CSV file and do this for every column that contains a valid unit of measurement&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For me, option 2 would be the preferred option&lt;/P&gt;&lt;P&gt;A third option, would be to skip the unit of measurement line altogether but I would rather not use this option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any help that points me in the right direction to solve this challenge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2023 12:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-data-from-a-CSV-file-with-2-header-lines/m-p/657117#M111270</guid>
      <dc:creator>dajomas</dc:creator>
      <dc:date>2023-09-10T12:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I index data from a CSV file with 2 header lines</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-data-from-a-CSV-file-with-2-header-lines/m-p/657124#M111271</link>
      <description>&lt;P&gt;I would write a script that converts the CSV into K=V format and run it as a scripted input.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2023 18:56:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-data-from-a-CSV-file-with-2-header-lines/m-p/657124#M111271</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-09-10T18:56:49Z</dc:date>
    </item>
  </channel>
</rss>

