<?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: Date Parsing in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90913#M23393</link>
    <description>&lt;P&gt;Your &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; is wrong. It shouldn't include quotes, as Splunk will interpret that as that it should literally match the whole string including the quotes.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jul 2012 16:14:53 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-07-04T16:14:53Z</dc:date>
    <item>
      <title>Date Parsing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90912#M23392</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;

&lt;P&gt;I have the following in a log file that we're passing to Splunk:&lt;/P&gt;

&lt;P&gt;Log for 03/07/2012 06:47:43&lt;/P&gt;

&lt;P&gt;The date is being parsed as 07/03/2012 so we added:&lt;/P&gt;

&lt;P&gt;TIME_PREFIX = "Log for "&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %d/%m/%Y %H:%M:%S&lt;/P&gt;

&lt;P&gt;to PROPS.CONF&lt;/P&gt;

&lt;P&gt;I'm still getting 07/03 and also a "Could not use strptime to parse timestamp".&lt;/P&gt;

&lt;P&gt;Can anyone assist?&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2012 15:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90912#M23392</guid>
      <dc:creator>dmrhodes101</dc:creator>
      <dc:date>2012-07-04T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date Parsing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90913#M23393</link>
      <description>&lt;P&gt;Your &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; is wrong. It shouldn't include quotes, as Splunk will interpret that as that it should literally match the whole string including the quotes.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2012 16:14:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90913#M23393</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-04T16:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date Parsing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90914#M23394</link>
      <description>&lt;P&gt;Thanks Ayn&lt;/P&gt;

&lt;P&gt;I've changed that, but there's no difference I'm afraid.&lt;/P&gt;

&lt;P&gt;The date is highlighted, but it insists on converting to a US date.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 08:43:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90914#M23394</guid>
      <dc:creator>dmrhodes101</dc:creator>
      <dc:date>2012-07-05T08:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date Parsing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90915#M23395</link>
      <description>&lt;P&gt;Are you looking at newly indexed data? Data that is already in the index will not be affected by these changes. Also I'm assuming that you're sure that this relates to how Splunk parses the data, not how it outputs it in the web UI...&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 08:46:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90915#M23395</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-07-05T08:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date Parsing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90916#M23396</link>
      <description>&lt;P&gt;Curse my stupidity. I had forgotten to restart Splunk when I made the change above.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2012 08:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90916#M23396</guid>
      <dc:creator>dmrhodes101</dc:creator>
      <dc:date>2012-07-06T08:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date Parsing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90917#M23397</link>
      <description>&lt;P&gt;Now trying to create a new data input and getting the same error again:&lt;/P&gt;

&lt;P&gt;From PROPS.CONF&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[EDICOMMS]
NO_BINARY_CHECK = 1
pulldown_type = 1
TIME_PREFIX = Log for 
TIME_FORMAT = %d/%m/%Y %H:%M:%S
SHOULD_LINEMERGE = True
BREAK_ONLY_AFTER =  &amp;lt;NEWRECORD&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;116     03/07/2012 04:20:06.000   Log for 03/07/2012 04:20:06
                                  "CUSTOMER:*******" &amp;lt;NEWRECORD&amp;gt; 

117     03/07/2012 04:20:18.000   Log for 03/07/2012 04:20:18
                                  Unknown issue. Type DIR Error 20142 550 No matching files pouet
                                  "CUSTOMER:*******" &amp;lt;NEWRECORD&amp;gt; 

118     03/07/2012 04:20:21.000   Log for 03/07/2012 04:20:21
                                  "CUSTOMER:********" &amp;lt;NEWRECORD&amp;gt; 

119     03/07/2012 04:20:25.000   Log for 03/07/2012 04:20:25
                                  "CUSTOMER:********" &amp;lt;NEWRECORD&amp;gt; 

120     03/07/2012 04:22:39.000   Log for 03/07/2012 04:22:39
                                  "CUSTOMER:*****" &amp;lt;NEWRECORD&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Each event has the "Could not use strptime to parse timestamp" warning, but seems to have converted the timestamp correctly. &lt;/P&gt;

&lt;P&gt;Anyone know what I' doing wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2012 11:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90917#M23397</guid>
      <dc:creator>dmrhodes101</dc:creator>
      <dc:date>2012-07-09T11:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date Parsing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90918#M23398</link>
      <description>&lt;P&gt;Hi, have you solve this?&lt;BR /&gt;
I am having the same issue as you and not sure what to do.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 05:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90918#M23398</guid>
      <dc:creator>elaine0102</dc:creator>
      <dc:date>2012-10-05T05:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date Parsing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90919#M23399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I changed the PROPS.CONF file to read:&lt;/P&gt;

&lt;P&gt;[EDICOMMS]&lt;/P&gt;

&lt;P&gt;NO_BINARY_CHECK = 1&lt;/P&gt;

&lt;P&gt;pulldown_type = 1&lt;/P&gt;

&lt;P&gt;TIME_PREFIX = Log for&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %d/%m/%Y %H:%M:%S&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE = TRUE&lt;/P&gt;

&lt;P&gt;BREAK_ONLY_BEFORE = Log for&lt;/P&gt;

&lt;P&gt;And that fixed my problem.&lt;/P&gt;

&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:34:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90919#M23399</guid>
      <dc:creator>dmrhodes101</dc:creator>
      <dc:date>2020-09-28T12:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date Parsing</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90920#M23400</link>
      <description>&lt;P&gt;Glad that you managed to solve it.&lt;BR /&gt;
However, it could not solve mine.&lt;BR /&gt;
Thank you for replying &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 09:23:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-Parsing/m-p/90920#M23400</guid>
      <dc:creator>elaine0102</dc:creator>
      <dc:date>2012-10-05T09:23:01Z</dc:date>
    </item>
  </channel>
</rss>

