<?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: Extract field names from CSV header in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692810#M235801</link>
    <description>&lt;P&gt;If you can define which line contains headers and which values, then you can do this with any countable columns. It’s enough to known how many columns you could maximum have.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 19:51:57 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2024-07-09T19:51:57Z</dc:date>
    <item>
      <title>Extract field names from CSV header</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692292#M235645</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;my CSV file contains a field like bellow (1st line in CSV) How can i create transformation for field extraction&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"State","Location name","Primary Number"&lt;/LI-CODE&gt;
&lt;P&gt;its retrieving a field state and Location&lt;/P&gt;
&lt;P&gt;Expected Fields:&lt;BR /&gt;State&lt;BR /&gt;Location name&lt;BR /&gt;Primary Number&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 17:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692292#M235645</guid>
      <dc:creator>JIthesh_Kumar</dc:creator>
      <dc:date>2024-07-03T17:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field names from CSV header</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692314#M235648</link>
      <description>&lt;P&gt;You needs are probably better served by&amp;nbsp;INDEXED_EXTRACTIONS=csv (index time extraction) or KV_MODE=csv (search time) in sourcetype. &amp;nbsp;Using regex to handle structured data like CSV is very fragile.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 15:29:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692314#M235648</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-07-03T15:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field names from CSV header</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692562#M235719</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;this is doable, but probably it needs some way to recognize which line is header line. And position in file is not that. But as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;said it's much better to use INDEXED_EXTRACTIONS=csv and then define HEADER_FIELD_LINE_NUMBER if it didn't recognize automatically that header line.&lt;/P&gt;&lt;P&gt;You should put props.conf also on your UF to get this work.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf#Structured_Data_Header_Extraction_and_configuration" target="_blank"&gt;Structured Data Header Extraction and configuration&lt;/A&gt;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 17:58:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692562#M235719</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-07-06T17:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field names from CSV header</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692565#M235720</link>
      <description>&lt;P&gt;If your column order is known and does not change, you can define delimiter-based extractions in props.conf for your sourcetype. But then you must explicitly name the fields and their order. Otherwise the only way to handle such file is using indexed extractions (which has its own drawbacks). Remember that indexed extractions happen on the initial forwarder!&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2024 19:25:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692565#M235720</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-06T19:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extract field names from CSV header</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692810#M235801</link>
      <description>&lt;P&gt;If you can define which line contains headers and which values, then you can do this with any countable columns. It’s enough to known how many columns you could maximum have.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 19:51:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-field-names-from-CSV-header/m-p/692810#M235801</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-07-09T19:51:57Z</dc:date>
    </item>
  </channel>
</rss>

