<?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 get largest numeric (using regex) value displayed on a dashboard from a particular search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246590#M73509</link>
    <description>&lt;P&gt;Thanks for that info!  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;I was hoping to add this to a Radial Gauge, but default is 100.&lt;BR /&gt;&lt;BR /&gt;
We expect about 5,000 log entries/lines per hour and I am curious how we can change the Radial Gauge threshold/value.  &lt;/P&gt;

&lt;P&gt;Also, how can we revert the direction?   I.e.:  5,000 entries is in the green and 0 would be red.  &lt;/P&gt;

&lt;P&gt;Thanks.  &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2015 18:02:17 GMT</pubDate>
    <dc:creator>agoktas</dc:creator>
    <dc:date>2015-09-30T18:02:17Z</dc:date>
    <item>
      <title>How to get largest numeric (using regex) value displayed on a dashboard from a particular search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246586#M73505</link>
      <description>&lt;P&gt;We have a search that comes back with the following raw log data in every few lines:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;getUnitofWorkThread-1 incrementing totalRecordsProcessedCount to 85441
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That number increments and I want to display the latest number with the search range (i.e.:  If I have 20 values (number increments), I only need the latest/largest number).  &lt;/P&gt;

&lt;P&gt;How do I do this?  &lt;/P&gt;

&lt;P&gt;I'm open to any suggestions. &lt;/P&gt;

&lt;P&gt;Should I shorten the range to the last 1 minute?  Real-time searches cause unnecessary load on the search head, so I was hoping to do perhaps the last 5 minutes and perform the search every 5 minutes.&lt;/P&gt;

&lt;P&gt;Additionally, I want to create a dial/gauge that shows x number of log entries (realtime search is ok in this case) for past x seconds/minutes.  So any suggestions on how to create that would be appreciated.  &lt;/P&gt;

&lt;P&gt;The goal is to ensure that we don't have any delays in processing a job that will take about 48 hours.  If there is a hang and the output to log slows down dramatically, or even stops, we want an alert.  But first I wanted to get a handy dashboard going.    &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 23:34:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246586#M73505</guid>
      <dc:creator>agoktas</dc:creator>
      <dc:date>2015-09-29T23:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get largest numeric (using regex) value displayed on a dashboard from a particular search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246587#M73506</link>
      <description>&lt;P&gt;You can try like this to get the largest number. Shortening the timerange would help in query performance.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd | rex "(?&amp;lt;SomeNumber&amp;gt;\d+)$" | stats max(SomeNumber) as SomeNumber
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2015 00:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246587#M73506</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-30T00:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get largest numeric (using regex) value displayed on a dashboard from a particular search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246588#M73507</link>
      <description>&lt;P&gt;Stats max is great way.. You could also Sort, and head?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd | rex "(?&amp;lt;SomeNumber&amp;gt;\d+)$" | sort - SomeNumber | head 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2015 00:20:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246588#M73507</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-09-30T00:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get largest numeric (using regex) value displayed on a dashboard from a particular search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246589#M73508</link>
      <description>&lt;P&gt;As pointed out in other comments/answers, using stats with the max function, or sorting descending with a head of 1 on the extracted field would give you the largest number for a given timerange.&lt;/P&gt;

&lt;P&gt;For the count of total events within a window, you could do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=processing_job | stats count as "Total Events"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for some given realtime window&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 01:36:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246589#M73508</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2015-09-30T01:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get largest numeric (using regex) value displayed on a dashboard from a particular search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246590#M73509</link>
      <description>&lt;P&gt;Thanks for that info!  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;I was hoping to add this to a Radial Gauge, but default is 100.&lt;BR /&gt;&lt;BR /&gt;
We expect about 5,000 log entries/lines per hour and I am curious how we can change the Radial Gauge threshold/value.  &lt;/P&gt;

&lt;P&gt;Also, how can we revert the direction?   I.e.:  5,000 entries is in the green and 0 would be red.  &lt;/P&gt;

&lt;P&gt;Thanks.  &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 18:02:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246590#M73509</guid>
      <dc:creator>agoktas</dc:creator>
      <dc:date>2015-09-30T18:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get largest numeric (using regex) value displayed on a dashboard from a particular search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246591#M73510</link>
      <description>&lt;P&gt;Thanks for the answer.  That worked perfectly!  &lt;/P&gt;

&lt;P&gt;One last question, &lt;/P&gt;

&lt;P&gt;How would I change the color of the value's font when I have this in a dashboard as a "Single Value" within the panel?  &lt;/P&gt;

&lt;P&gt;Currently is default bold + black font.  &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 18:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246591#M73510</guid>
      <dc:creator>agoktas</dc:creator>
      <dc:date>2015-09-30T18:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get largest numeric (using regex) value displayed on a dashboard from a particular search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246592#M73511</link>
      <description>&lt;P&gt;Have a look at the Dashboard example app&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There are examples for Single Value Elements which can help you get these kind of customizations.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 19:03:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246592#M73511</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-30T19:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get largest numeric (using regex) value displayed on a dashboard from a particular search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246593#M73512</link>
      <description>&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/314836/how-to-adjust-radial-gauge-numeric-range-within-a.html?minQuestionBodyLength=80"&gt;http://answers.splunk.com/answers/314836/how-to-adjust-radial-gauge-numeric-range-within-a.html?minQuestionBodyLength=80&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 17:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-largest-numeric-using-regex-value-displayed-on-a/m-p/246593#M73512</guid>
      <dc:creator>agoktas</dc:creator>
      <dc:date>2015-10-01T17:33:09Z</dc:date>
    </item>
  </channel>
</rss>

