<?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 help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284190#M85916</link>
    <description>&lt;P&gt;after the rex instead of &lt;CODE&gt;top&lt;/CODE&gt; use &lt;CODE&gt;sort TrasactionTime&lt;/CODE&gt; for ascending  or &lt;CODE&gt;sort - TrasactionTime&lt;/CODE&gt; for descending sort and add also  &lt;CODE&gt;| head 10&lt;/CODE&gt; at the end to get only the the last 10 result after the sort.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2015 23:11:02 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2015-12-17T23:11:02Z</dc:date>
    <item>
      <title>Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284186#M85912</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;Would anyone know the regex value for the final numeric value after the last comma in the following log entry:&lt;BR /&gt;&lt;BR /&gt;
BlahBlah 2015/12/17 13:23:48:266,63&lt;/P&gt;

&lt;P&gt;So all I need is the number after the last comma.  It can be 1 or more digits (including zero).  &lt;/P&gt;

&lt;P&gt;I'm creating a named variable, but this doesn't work:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex ", (?P&amp;lt;TrasactionTime&amp;gt;\d+)$" | top 10 TrasactionTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 21:38:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284186#M85912</guid>
      <dc:creator>agoktas</dc:creator>
      <dc:date>2015-12-17T21:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284187#M85913</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex (?&amp;lt;TransactionTime&amp;gt;\d+)$ | top 10 TransactionTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2015 21:46:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284187#M85913</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-12-17T21:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284188#M85914</link>
      <description>&lt;P&gt;Hi agoktas,&lt;/P&gt;

&lt;P&gt;almost correct, your regex has a whitespace too much so this will work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search here | rex ",(?&amp;lt;TrasactionTime&amp;gt;\d+)$" | top 10 TrasactionTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 21:49:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284188#M85914</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-12-17T21:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284189#M85915</link>
      <description>&lt;P&gt;Bingo!  That's it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  I knew it was close.  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;By the way, how do you sort by the values it returns?  I noticed if I do a: &lt;BR /&gt;
| top 10 TrasactionTime&lt;BR /&gt;
It will only return the 10 most frequent occurred values, versus the top 10 values.  &lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 23:06:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284189#M85915</guid>
      <dc:creator>agoktas</dc:creator>
      <dc:date>2015-12-17T23:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284190#M85916</link>
      <description>&lt;P&gt;after the rex instead of &lt;CODE&gt;top&lt;/CODE&gt; use &lt;CODE&gt;sort TrasactionTime&lt;/CODE&gt; for ascending  or &lt;CODE&gt;sort - TrasactionTime&lt;/CODE&gt; for descending sort and add also  &lt;CODE&gt;| head 10&lt;/CODE&gt; at the end to get only the the last 10 result after the sort.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 23:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284190#M85916</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-12-17T23:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284191#M85917</link>
      <description>&lt;P&gt;Perfect.  &lt;/P&gt;

&lt;P&gt;One last thing... sorry...&lt;BR /&gt;
How do you only allow the "TrasactionTime" column to show?  &lt;/P&gt;

&lt;P&gt;It now displays the TrasactionTime  &amp;amp; Rawlog columns.  The raw log clutters the panel. &lt;/P&gt;

&lt;P&gt;Thanks.  &lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 23:34:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284191#M85917</guid>
      <dc:creator>agoktas</dc:creator>
      <dc:date>2015-12-17T23:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284192#M85918</link>
      <description>&lt;P&gt;either use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | fields TrasactionTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | table TrasactionTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;BTW should this be TransactionTime instead of TrasactionTime?&lt;/P&gt;

&lt;P&gt;Feel free to up vote the additional answers - thanks :))&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 00:37:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284192#M85918</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-12-18T00:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284193#M85919</link>
      <description>&lt;P&gt;Table TransactionTime worked perfectly.  &lt;/P&gt;

&lt;P&gt;fields TransactionTime still had other columns.  &lt;/P&gt;

&lt;P&gt;Yes, I made a typo.  "Transaction" is correct.  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;  &lt;/P&gt;

&lt;P&gt;Thanks again for all your help!  &lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 00:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help/m-p/284193#M85919</guid>
      <dc:creator>agoktas</dc:creator>
      <dc:date>2015-12-18T00:42:24Z</dc:date>
    </item>
  </channel>
</rss>

