<?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 fields from CSV log file without header in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-CSV-log-file-without-header/m-p/569843#M101031</link>
    <description>&lt;P&gt;Hi guys, I still didn't find any solution, any body could help me ?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 08:52:02 GMT</pubDate>
    <dc:creator>kvnpichon</dc:creator>
    <dc:date>2021-10-06T08:52:02Z</dc:date>
    <item>
      <title>Extract fields from CSV log file without header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-CSV-log-file-without-header/m-p/569179#M100955</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a CSV file in this form :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-08-30 15:45:32;MOZILLA;j.dupont;FR6741557ERF;1.1.1.1;CONNEXION;;
2021-08-30 15:45:24;MOZILLA;j.dupont;FR6741557ERF;1.1.1.1;STATUS;;BDD
2021-08-30 15:45:16;MOZILLA;j.dupontFR6741557ERF;1.1.1.1;START;App_start;WEB&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corresponding to these 8 fields : date,application,user,host,ip,type,detail,module&lt;/P&gt;&lt;P&gt;I have 2 questions :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;How can I extract these fields ?&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;How can I extract field at search-time (to be able to be retroactive on old logs)&lt;/STRONG&gt; ?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This my actuals props.conf and transforms.conf deployed on Search Head + Indexers and the inputs.conf file on the Universal Forwarder :&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[csvlogs]
disabled = false
TIME_PREFIX = ^
TIME_FORMAT = %Y-%m-%d %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 19
LINE_BREAKER = ([\r\n]+)
SHOULD_LINEMERGE = false
KV_MODE = none
REPORT-fieldsextraction = logs_fields&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[logs_fields]
DELIMS = ";"
FIELDS = date,application,user,hostname,ip,type,detail,module
KEEP_EMPTY_VALS = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inputs.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Monitor://D:\repository\logs.csv]
disabled = false
sourcetype=csvlogs
index=logs_index1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have solutions ?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 15:06:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-CSV-log-file-without-header/m-p/569179#M100955</guid>
      <dc:creator>kvnpichon</dc:creator>
      <dc:date>2021-10-05T15:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract fields from CSV log file without header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-CSV-log-file-without-header/m-p/569183#M100956</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223017"&gt;@kvnpichon&lt;/a&gt;&amp;nbsp;This post can help you please take a look:&lt;BR /&gt;&lt;A href="https://blog.avotrix.com/different-ways-to-remove-headers-in-splunk/" target="_self"&gt;https://blog.avotrix.com/different-ways-to-remove-headers-in-splunk/&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Also, If this reply helps you, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:48:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-CSV-log-file-without-header/m-p/569183#M100956</guid>
      <dc:creator>ashvinpandey</dc:creator>
      <dc:date>2021-09-30T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extract fields from CSV log file without header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-CSV-log-file-without-header/m-p/569279#M100963</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199978"&gt;@ashvinpandey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;In fact I have no header line in my log file, the process you sent me allow me to delete the header line but doesn't extract fields from the csv logs file.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 07:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-CSV-log-file-without-header/m-p/569279#M100963</guid>
      <dc:creator>kvnpichon</dc:creator>
      <dc:date>2021-10-01T07:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extract fields from CSV log file without header</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-CSV-log-file-without-header/m-p/569843#M101031</link>
      <description>&lt;P&gt;Hi guys, I still didn't find any solution, any body could help me ?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 08:52:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-CSV-log-file-without-header/m-p/569843#M101031</guid>
      <dc:creator>kvnpichon</dc:creator>
      <dc:date>2021-10-06T08:52:02Z</dc:date>
    </item>
  </channel>
</rss>

