<?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 Can't extract simple YYYYMMDD data to be event date... in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170609#M34494</link>
    <description>&lt;P&gt;I have PSV files in such format. Date is in 2nd column.&lt;BR /&gt;
Haven't spent much time to try different setting, but Splunk still took file modified time as event time stamp. I'm stilling asking myself what's wrong with "TIME_FORMAT= %Y%m%d"??&lt;/P&gt;

&lt;P&gt;Anyone can help to see what's wrong of my props.conf?&lt;/P&gt;

&lt;P&gt;foo|20131201|bar|...&lt;/P&gt;

&lt;P&gt;[unixops:sitelog]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_FORMAT= %Y%m%d&lt;BR /&gt;
LEARN_MODEL = false&lt;BR /&gt;
INDEXED_EXTRACTIONS = PSV&lt;BR /&gt;
FIELD_NAMES = host,date,log,message_type,region,city,campus,building,status,personality&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:15:54 GMT</pubDate>
    <dc:creator>philip_wong</dc:creator>
    <dc:date>2020-09-28T17:15:54Z</dc:date>
    <item>
      <title>Can't extract simple YYYYMMDD data to be event date...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170609#M34494</link>
      <description>&lt;P&gt;I have PSV files in such format. Date is in 2nd column.&lt;BR /&gt;
Haven't spent much time to try different setting, but Splunk still took file modified time as event time stamp. I'm stilling asking myself what's wrong with "TIME_FORMAT= %Y%m%d"??&lt;/P&gt;

&lt;P&gt;Anyone can help to see what's wrong of my props.conf?&lt;/P&gt;

&lt;P&gt;foo|20131201|bar|...&lt;/P&gt;

&lt;P&gt;[unixops:sitelog]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_FORMAT= %Y%m%d&lt;BR /&gt;
LEARN_MODEL = false&lt;BR /&gt;
INDEXED_EXTRACTIONS = PSV&lt;BR /&gt;
FIELD_NAMES = host,date,log,message_type,region,city,campus,building,status,personality&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170609#M34494</guid>
      <dc:creator>philip_wong</dc:creator>
      <dc:date>2020-09-28T17:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't extract simple YYYYMMDD data to be event date...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170610#M34495</link>
      <description>&lt;P&gt;In your case, you need to set &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; and &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt;. Check the props.conf documenattion&lt;BR /&gt;
&lt;A href="http://"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.1/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = foo|

MAX_TIMESTAMP_LOOKAHEAD = 12
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try these. Change the values as required.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2014 10:19:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170610#M34495</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-05T10:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't extract simple YYYYMMDD data to be event date...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170611#M34496</link>
      <description>&lt;P&gt;"foo" is not fixed value.&lt;/P&gt;

&lt;P&gt;I did try TIME_PREFIX = |  and MAX_TIMESTAMP_LOOKAHEAD = 50 , still didn't work&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170611#M34496</guid>
      <dc:creator>philip_wong</dc:creator>
      <dc:date>2020-09-28T17:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't extract simple YYYYMMDD data to be event date...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170612#M34497</link>
      <description>&lt;P&gt;Can you tell what will be there before |20131201. Is it one word or multiple words separated by |.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 02:44:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170612#M34497</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-06T02:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't extract simple YYYYMMDD data to be event date...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170613#M34498</link>
      <description>&lt;P&gt;It works now. A silly mistake...&lt;/P&gt;

&lt;P&gt;I didn't pay attention TIME_PREFIX is regex based.&lt;BR /&gt;
So the answer is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = \|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks helping me!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 09:03:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170613#M34498</guid>
      <dc:creator>philip_wong</dc:creator>
      <dc:date>2014-08-06T09:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't extract simple YYYYMMDD data to be event date...</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170614#M34499</link>
      <description>&lt;P&gt;Good to know that it worked. Dont forget to accept the answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 09:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-t-extract-simple-YYYYMMDD-data-to-be-event-date/m-p/170614#M34499</guid>
      <dc:creator>strive</dc:creator>
      <dc:date>2014-08-06T09:12:29Z</dc:date>
    </item>
  </channel>
</rss>

