<?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 time from preamble data in csv? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628856#M107902</link>
    <description>&lt;P&gt;Hi scelikok,&lt;/P&gt;&lt;P&gt;i have updated the props to the new settings, unfortunately it doesn't work. i have noticed that the time settings works up untill i add:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;INDEXED_EXTRACTIONS = CSV &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;if i removed the&amp;nbsp;INDEXED_EXTRACTIONS, then i will lose the ability to parse and capture the fields. that means i can only get the props.conf to capture the time correctly but not the fields or vice versa.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2023 16:18:42 GMT</pubDate>
    <dc:creator>manhalmoussa</dc:creator>
    <dc:date>2023-01-30T16:18:42Z</dc:date>
    <item>
      <title>How to extract time from preamble data in csv?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628676#M107890</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;i am using UF to ingest a csv file that has the timestamp in preamble data, i would like to extract the timestamp and to remove the preamble data and then ingest the csv.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the file looks like the table below:&lt;/P&gt;
&lt;TABLE width="561"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="197"&gt;Time stamp&lt;/TD&gt;
&lt;TD width="170"&gt;2023-01-26T11:15:00-05:00&lt;/TD&gt;
&lt;TD width="194"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;info&lt;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
&lt;TD&gt;info6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;value7&lt;/TD&gt;
&lt;TD&gt;7&lt;/TD&gt;
&lt;TD&gt;info7&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;value8&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;info8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;value9&lt;/TD&gt;
&lt;TD&gt;9&lt;/TD&gt;
&lt;TD&gt;info9&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my props.conf:&lt;/P&gt;
&lt;P&gt;DATETIME_CONFIG =&lt;BR /&gt;TIME_PREFIX=Time\sstamp,&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD=22&lt;BR /&gt;TIME_FORMAT=%Y-%m-%dT%H:%M:%S%z&lt;BR /&gt;INDEXED_EXTRACTIONS = CSV&lt;BR /&gt;FIELD_HEADER_REGEX = (field1.*)&lt;BR /&gt;LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;NO_BINARY_CHECK = true&lt;/P&gt;
&lt;P&gt;the issue here is i am able to read the csv and the field names, however the timestamp of the event is the current time and not from the file. how do i fix this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 21:29:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628676#M107890</guid>
      <dc:creator>manhalmoussa</dc:creator>
      <dc:date>2023-01-27T21:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Time from preamble data in csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628679#M107892</link>
      <description>&lt;P&gt;The example timestamp doesn't match the format in TIME_FORMAT.&amp;nbsp; Try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT=%Y-%m-%dT%H:%M:%S%:z&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 27 Jan 2023 20:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628679#M107892</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-01-27T20:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Time from preamble data in csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628681#M107893</link>
      <description>&lt;P&gt;Thank you for your answer, unfortunately it doesn't work.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 20:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628681#M107893</guid>
      <dc:creator>manhalmoussa</dc:creator>
      <dc:date>2023-01-27T20:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract time from preamble data in csv?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628697#M107896</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240465"&gt;@manhalmoussa&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your&amp;nbsp;&lt;SPAN&gt;MAX_TIMESTAMP_LOOKAHEAD setting seems wrong, please try this.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MAX_TIMESTAMP_LOOKAHEAD=25
TIME_FORMAT=%Y-%m-%dT%H:%M:%S%:z&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 06:34:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628697#M107896</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-01-28T06:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract time from preamble data in csv?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628856#M107902</link>
      <description>&lt;P&gt;Hi scelikok,&lt;/P&gt;&lt;P&gt;i have updated the props to the new settings, unfortunately it doesn't work. i have noticed that the time settings works up untill i add:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;INDEXED_EXTRACTIONS = CSV &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;if i removed the&amp;nbsp;INDEXED_EXTRACTIONS, then i will lose the ability to parse and capture the fields. that means i can only get the props.conf to capture the time correctly but not the fields or vice versa.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 16:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-time-from-preamble-data-in-csv/m-p/628856#M107902</guid>
      <dc:creator>manhalmoussa</dc:creator>
      <dc:date>2023-01-30T16:18:42Z</dc:date>
    </item>
  </channel>
</rss>

