<?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: interesting regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436660#M124428</link>
    <description>&lt;P&gt;@dbcase If your problem is resolved, please accept the answer to help future readers and to give the answerer the promised Karma points.&lt;/P&gt;</description>
    <pubDate>Sat, 12 Jan 2019 21:07:25 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-01-12T21:07:25Z</dc:date>
    <item>
      <title>interesting regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436655#M124423</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have data that looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-06-11 23:37:11,035 pool-10-thread-1 DEBUG c.i.w.i.s.WholesaleCVRService

2018-06-11 23:37:09,386 pool-10-thread-1 DEBUG c.i.w.i.s.WholesaleCVRService - In register camera update event, with accessToken 

2018-06-11 23:37:07,763 pool-10-thread-1 DEBUG c.i.w.i.s.WholesaleCVRService - Reponse of camera update event 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to be able to extract out the date and time on each event . (i.e.  2018-06-11 23:37:11,035)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 18:25:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436655#M124423</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2018-07-12T18:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: interesting regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436656#M124424</link>
      <description>&lt;P&gt;@dbcase,&lt;/P&gt;

&lt;P&gt;Are you looking for this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="2018-06-11 23:37:07,763 pool-10-thread-1 DEBUG c.i.w.i.s.WholesaleCVRService - Reponse of camera update event " | rex field=_raw "(?&amp;lt;my_date&amp;gt;\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3})" | table my_date
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jul 2018 18:42:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436656#M124424</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-07-12T18:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: interesting regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436657#M124425</link>
      <description>&lt;P&gt;Thanks Kamlesh!  that works!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 18:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436657#M124425</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2018-07-12T18:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: interesting regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436658#M124426</link>
      <description>&lt;P&gt;Great!!&lt;BR /&gt;
Can you please accept the answer to close this question?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 18:57:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436658#M124426</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-07-12T18:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: interesting regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436659#M124427</link>
      <description>&lt;P&gt;If the data is going into Splunk correctly, then you should have the time in the variable &lt;CODE&gt;_time&lt;/CODE&gt; as well as getting access to each of the fields named &lt;CODE&gt;date_*&lt;/CODE&gt; for the &lt;CODE&gt;year&lt;/CODE&gt;, &lt;CODE&gt;month&lt;/CODE&gt;, &lt;CODE&gt;day&lt;/CODE&gt;, &lt;CODE&gt;hour&lt;/CODE&gt;, &lt;CODE&gt;minute&lt;/CODE&gt;, &lt;CODE&gt;second&lt;/CODE&gt;. You would not get the sub-second value automatically. The &lt;CODE&gt;_time&lt;/CODE&gt; field can be output in any number of formats. So you should have that same data available to you without having to use a regex.&lt;/P&gt;

&lt;P&gt;If on the other hand you have need of that date specifically, then you can use a regex (like that provided by @kamiesh_veghela). Do you need that date broken up into different fields? If so, that is another regex, but can be done easily enough.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 19:04:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436659#M124427</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-07-12T19:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: interesting regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436660#M124428</link>
      <description>&lt;P&gt;@dbcase If your problem is resolved, please accept the answer to help future readers and to give the answerer the promised Karma points.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 21:07:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/interesting-regex/m-p/436660#M124428</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-01-12T21:07:25Z</dc:date>
    </item>
  </channel>
</rss>

