<?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: regex to split time/date from field in lookup for timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466560#M131357</link>
    <description>&lt;P&gt;Try: &lt;BR /&gt;
&lt;STRONG&gt;| rex field=whenCreated "(?[\d:.\sAPM]+),\s\w{3}\s(?[\d/]+)"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Sample query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval whenCreated="04:25.45 PM, Thu 10/01/2015" | rex field=whenCreated "(?&amp;lt;time&amp;gt;[\d:.\sAPM]+),\s\w{3}\s(?&amp;lt;date&amp;gt;[\d/]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Feb 2020 14:27:56 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-02-13T14:27:56Z</dc:date>
    <item>
      <title>regex to split time/date from field in lookup for timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466559#M131356</link>
      <description>&lt;P&gt;I have a lookup and would like to extract the date for a time chart&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8365iFF08670FF8E412B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;TIA &lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 13:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466559#M131356</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2020-02-13T13:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: regex to split time/date from field in lookup for timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466560#M131357</link>
      <description>&lt;P&gt;Try: &lt;BR /&gt;
&lt;STRONG&gt;| rex field=whenCreated "(?[\d:.\sAPM]+),\s\w{3}\s(?[\d/]+)"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Sample query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval whenCreated="04:25.45 PM, Thu 10/01/2015" | rex field=whenCreated "(?&amp;lt;time&amp;gt;[\d:.\sAPM]+),\s\w{3}\s(?&amp;lt;date&amp;gt;[\d/]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:27:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466560#M131357</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-02-13T14:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: regex to split time/date from field in lookup for timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466561#M131358</link>
      <description>&lt;P&gt;Hello. Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval timeStamp="04:24.45 PM, Thu 10/01/2015"
| rex field=timeStamp "(?&amp;lt;time&amp;gt;\d+:\d+\.\d+\s\w+)\,\s\w+\s(?&amp;lt;date&amp;gt;\d+\/\d+\/\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466561#M131358</guid>
      <dc:creator>oscar84x</dc:creator>
      <dc:date>2020-02-13T14:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: regex to split time/date from field in lookup for timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466562#M131359</link>
      <description>&lt;P&gt;Hi @nathanluke86&lt;/P&gt;

&lt;P&gt;Try the below rex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval whenCreated="04:25.45 PM, Thu 10/01/2015" 
| rex field=whenCreated "(?P&amp;lt;date&amp;gt;\d{2}\/\d{2}\/\d{4}$)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466562#M131359</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-02-13T14:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: regex to split time/date from field in lookup for timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466563#M131360</link>
      <description>&lt;P&gt;@oscar84x @manjunathmeti  @vnravikumar &lt;/P&gt;

&lt;P&gt;I have multiple dates in the whenCreated column in the lookup (240 results all different times).&lt;/P&gt;

&lt;P&gt;What I am trying to achieve is to just use the results of the lookup using two fields&lt;/P&gt;

&lt;P&gt;timechart user by whenCreated if that make sense&lt;/P&gt;

&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 15:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466563#M131360</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2020-02-13T15:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: regex to split time/date from field in lookup for timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466564#M131361</link>
      <description>&lt;P&gt;Took line 3 from above Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 09:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-split-time-date-from-field-in-lookup-for-timechart/m-p/466564#M131361</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2020-02-14T09:21:11Z</dc:date>
    </item>
  </channel>
</rss>

