<?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 write regex to create new events before a certain time format? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195398#M38866</link>
    <description>&lt;P&gt;Yes. I did&lt;/P&gt;</description>
    <pubDate>Tue, 26 Aug 2014 15:04:34 GMT</pubDate>
    <dc:creator>rameshlpatel</dc:creator>
    <dc:date>2014-08-26T15:04:34Z</dc:date>
    <item>
      <title>How to write regex to create new events before a certain time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195391#M38859</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please some help me to create new event if i find HH:MM:SS time format in logs for sourcetype perfLog.&lt;/P&gt;

&lt;P&gt;I have used below configuration in props.conf file inside Indexer /opt/splunk/etc/system/local dir.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype::perfLog]
SHOULD_LINEMERGE=false
BREAK_ONLY_BEFORE=^(?:\d|[01]\d|2[0-3]):[0-5]\d$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But still it did not work. Below are the example of logs.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;08:11:13&lt;/STRONG&gt; |INFO | | LoggingHandler | ausu512a.wm.com|{&lt;A href="http://esb.wm.com/service/getCustAccountInfo%7DgetCustAccountInfo%7CgetCustAccountInfo%7C329179%7CSTART"&gt;http://esb.wm.com/service/getCustAccountInfo}getCustAccountInfo|getCustAccountInfo|329179|START&lt;/A&gt; TIME|Tue Aug 26 08:11:13 CDT 2014|Elapsed Time MS|244| MS |ESB CALL|TRANSACTION ID|2934447739687911190|&lt;BR /&gt;
08:11:13 |DEBUG | | Profiler | ausu512a.wm.com|class com.wm.css.payment.dao.impl.PayTransactionDaoImpl|List com.wm.css.payment.dao.PayTransactionDao.getPaymentDetailsForAccount(String)|329179|START TIME|Tue Aug 26 08:11:13 CDT 2014|Elapsed Time MS|26| MS |&lt;BR /&gt;
08:11:13 |DEBUG | | Profiler | ausu512a.wm.com|class com.wm.css.payment.service.impl.PaymentServiceImpl|List com.wm.css.payment.service.PaymentService.getPaymentDetailsForAccount(String)|329179|START TIME|Tue Aug 26 08:11:13 CDT 2014|Elapsed Time MS|26| MS |&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 13:16:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195391#M38859</guid>
      <dc:creator>rameshlpatel</dc:creator>
      <dc:date>2014-08-26T13:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex to create new events before a certain time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195392#M38860</link>
      <description>&lt;P&gt;Your regex isn't matching, so...&lt;/P&gt;

&lt;P&gt;You're looking for &lt;CODE&gt;^(?:\d|[01]\d|2[0-3]):[0-5]\d$&lt;/CODE&gt; and I don't see that matching anything in your sample events. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 13:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195392#M38860</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-08-26T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex to create new events before a certain time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195393#M38861</link>
      <description>&lt;P&gt;Help to create regex for same please ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 13:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195393#M38861</guid>
      <dc:creator>rameshlpatel</dc:creator>
      <dc:date>2014-08-26T13:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex to create new events before a certain time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195394#M38862</link>
      <description>&lt;P&gt;Try changing the &lt;CODE&gt;BREAK_ONLY_BEFORE&lt;/CODE&gt; statement to '&lt;CODE&gt;LINE_BREAKER=([\r\n]+)(\d\d:\d\d:\d\d)&lt;/CODE&gt;'.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 13:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195394#M38862</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-08-26T13:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex to create new events before a certain time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195395#M38863</link>
      <description>&lt;P&gt;My advice would be to use &lt;A href="http://www.regexr.com"&gt;www.regexr.com&lt;/A&gt; or similar to find a correct one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Otherwise I'd just help you this once and you wouldn't learn anything.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 13:36:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195395#M38863</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-08-26T13:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex to create new events before a certain time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195396#M38864</link>
      <description>&lt;P&gt;Thanks but its not working.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 13:47:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195396#M38864</guid>
      <dc:creator>rameshlpatel</dc:creator>
      <dc:date>2014-08-26T13:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex to create new events before a certain time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195397#M38865</link>
      <description>&lt;P&gt;Did you restart Splunk?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 13:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195397#M38865</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-08-26T13:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex to create new events before a certain time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195398#M38866</link>
      <description>&lt;P&gt;Yes. I did&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2014 15:04:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195398#M38866</guid>
      <dc:creator>rameshlpatel</dc:creator>
      <dc:date>2014-08-26T15:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to write regex to create new events before a certain time format?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195399#M38867</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;BREAK_ONLY_BEFORE=^\d{2}:\d{2}:\d{2}\s\|&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:24:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-regex-to-create-new-events-before-a-certain-time/m-p/195399#M38867</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T17:24:32Z</dc:date>
    </item>
  </channel>
</rss>

