<?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 / time format (regex help) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142895#M39684</link>
    <description>&lt;P&gt;This one worked for me.&lt;/P&gt;

&lt;P&gt;Thank you !&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2014 07:05:28 GMT</pubDate>
    <dc:creator>zebu14</dc:creator>
    <dc:date>2014-07-16T07:05:28Z</dc:date>
    <item>
      <title>Date / time format (regex help)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142891#M39680</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;My log files looks like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"1","I","R","140406 233102","E","0","1341874",[...]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want Splunk to recognize the date and time from this log.&lt;/P&gt;

&lt;P&gt;The date uses the following format : "YYMMDD HHMMSS"&lt;BR /&gt;
("140406 233102" ==&amp;gt; 2014 June 6th, 23h31m02s)&lt;/P&gt;

&lt;P&gt;Can someone help me to find the regex ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2014 13:59:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142891#M39680</guid>
      <dc:creator>zebu14</dc:creator>
      <dc:date>2014-07-15T13:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date / time format (regex help)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142892#M39681</link>
      <description>&lt;P&gt;You'll want to set these in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
TIME_PREFIX = ","
MAX_TIMESTAMP_LOOKAHEAD = 14
TIME_FORMAT = %y%m%d %H%M%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Depending on the rest of your sourcetype's special needs there may be more to set, but this should take care of your timestamp.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2014 14:03:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142892#M39681</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-15T14:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date / time format (regex help)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142893#M39682</link>
      <description>&lt;P&gt;Try this (props.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourSourceType]
TIME_FORMAT=%y%m%d %H%M%S
TIME_PREFIX=\"[a-zA-Z0-9]+\",\"[a-zA-Z0-9]+\",\"[a-zA-Z0-9]+\",\"
NO_BINARY_CHECK=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jul 2014 14:08:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142893#M39682</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-15T14:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date / time format (regex help)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142894#M39683</link>
      <description>&lt;P&gt;I'll try it as soon as possible.&lt;BR /&gt;
Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2014 14:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142894#M39683</guid>
      <dc:creator>zebu14</dc:creator>
      <dc:date>2014-07-15T14:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date / time format (regex help)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142895#M39684</link>
      <description>&lt;P&gt;This one worked for me.&lt;/P&gt;

&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2014 07:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-time-format-regex-help/m-p/142895#M39684</guid>
      <dc:creator>zebu14</dc:creator>
      <dc:date>2014-07-16T07:05:28Z</dc:date>
    </item>
  </channel>
</rss>

