<?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: Help with date Regex in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-date-Regex/m-p/234224#M45643</link>
    <description>&lt;P&gt;Thanks! Just what is was looking for.  The TIME_FORMAT worked great with one minor tweak.  The '@' did not need to be escaped.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2016 16:42:32 GMT</pubDate>
    <dc:creator>ehoward</dc:creator>
    <dc:date>2016-10-06T16:42:32Z</dc:date>
    <item>
      <title>Help with date Regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-date-Regex/m-p/234221#M45640</link>
      <description>&lt;P&gt;The find folks at Fortigate have chosen an "unusual" log format for their URL logs.  Pretty simple except for the fact that the Event date is not the first date that Splunk sees.  For example here is a sample (sanitized) record in the log:&lt;/P&gt;

&lt;P&gt;fort_url|BBOG|MTFCCDF08G|2016-09-25|09:00:00.|1|genkdca-fgat93|url.passthrough|6|TCP|::FFFF:192.168.1.1|53649|53649|::FFFF:135.11.107.20|443|443|52:Information Technology|9-25-2016@08:59:35|msg=URL belongs to an allowed category in policy:|mtfccdf08g-s:mtfccdf08g-n|either|&lt;A href="https://fakehost.com"&gt;https://fakehost.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Splunk grabs the recorded date "2016-09-25|09:00:00" fields as the date, but the date I really want recorded as the event time is "9-25-2016@08:59:35"  I went into Advance timeStamp extraction settings and entered "%Y-%m-%d@%H%M" as the timestamp format.  The place I am stuck is the regex I need to put in for Timestamp prefix.  These pipe symbol as the field delimiter is really screwing me up.  I really don't know what regex will work as the prefix.  Can someone take pity on my and tell me what regex will work?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 21:10:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-date-Regex/m-p/234221#M45640</guid>
      <dc:creator>ehoward</dc:creator>
      <dc:date>2016-10-05T21:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date Regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-date-Regex/m-p/234222#M45641</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %-m-%-d-%Y@%H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Oct 2016 21:30:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-date-Regex/m-p/234222#M45641</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-05T21:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date Regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-date-Regex/m-p/234223#M45642</link>
      <description>&lt;P&gt;Add following attribute to your sourcetype definition&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
TIME_PREFIX = ^([^\|]+\|){17}
TIME_FORMAT = %m-%d-%Y\@%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD =19
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Oct 2016 21:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-date-Regex/m-p/234223#M45642</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-05T21:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with date Regex</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-date-Regex/m-p/234224#M45643</link>
      <description>&lt;P&gt;Thanks! Just what is was looking for.  The TIME_FORMAT worked great with one minor tweak.  The '@' did not need to be escaped.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 16:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-date-Regex/m-p/234224#M45643</guid>
      <dc:creator>ehoward</dc:creator>
      <dc:date>2016-10-06T16:42:32Z</dc:date>
    </item>
  </channel>
</rss>

