<?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: Extract numerical value from text logs and get max occurrence of the number in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-numerical-value-from-text-logs-and-get-max-occurrence-of/m-p/529594#M149590</link>
    <description>&lt;P&gt;Thank you. This helps a lot and gives me a great starting point to explore further.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2020 18:09:40 GMT</pubDate>
    <dc:creator>vinayakolhapure</dc:creator>
    <dc:date>2020-11-16T18:09:40Z</dc:date>
    <item>
      <title>Extract numerical value from text logs and get max occurrence of the number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-numerical-value-from-text-logs-and-get-max-occurrence-of/m-p/529583#M149583</link>
      <description>&lt;P&gt;I want to extract a number from logs where the line of interest looks like,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt; &lt;SPAN class="t"&gt;2020-11-16&lt;/SPAN&gt; &lt;SPAN class="t"&gt;12:11:47&lt;/SPAN&gt;,&lt;SPAN class="t"&gt;161&lt;/SPAN&gt; [ThreadName-1] &lt;SPAN class="t"&gt;com.mypackage.myclass&lt;/SPAN&gt; &lt;SPAN class="t"&gt;TransId:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;a12345b6-7cde-8901-2f34-g5hi6jk789l0&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Req&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="t"&gt;ID&lt;/SPAN&gt; &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t"&gt;123456&lt;/SPAN&gt; &lt;SPAN class="t"&gt;EvNum-1234567&lt;/SPAN&gt; &lt;SPAN class="t"&gt;-&lt;/SPAN&gt; &lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;Received&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;12&amp;nbsp;create&lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;/cancel&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="t a"&gt;&lt;SPAN class="t"&gt;request.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I want to extract all occurrences for the number (in this example 12) between "Received " and " create/cancel request." for a time range and get the max. Basically to get what is the largest request the app received.&lt;/P&gt;&lt;P&gt;Thank you for your help with this.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 17:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-numerical-value-from-text-logs-and-get-max-occurrence-of/m-p/529583#M149583</guid>
      <dc:creator>vinayakolhapure</dc:creator>
      <dc:date>2020-11-16T17:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract numerical value from text logs and get max occurrence of the number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-numerical-value-from-text-logs-and-get-max-occurrence-of/m-p/529587#M149585</link>
      <description>&lt;P&gt;I like to use rex for this purpose.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | rex "Received (?&amp;lt;requestCount&amp;gt;\d+)"
| stats max(requestCount) as largestRequest&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Nov 2020 17:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-numerical-value-from-text-logs-and-get-max-occurrence-of/m-p/529587#M149585</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-16T17:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extract numerical value from text logs and get max occurrence of the number</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-numerical-value-from-text-logs-and-get-max-occurrence-of/m-p/529594#M149590</link>
      <description>&lt;P&gt;Thank you. This helps a lot and gives me a great starting point to explore further.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 18:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-numerical-value-from-text-logs-and-get-max-occurrence-of/m-p/529594#M149590</guid>
      <dc:creator>vinayakolhapure</dc:creator>
      <dc:date>2020-11-16T18:09:40Z</dc:date>
    </item>
  </channel>
</rss>

