<?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: Can you help me get a number value and average it? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-a-number-value-and-average-it/m-p/450387#M173117</link>
    <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YouShouldAlwaysSpecifyAnIndex AND sourcetype=AndSourcetypeToo
| rex "took\s+(?&amp;lt;responseSeconds&amp;gt;\d+)\s+seconds"
| timechart avg(responseSeconds) BY host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Feb 2019 08:06:18 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-02-12T08:06:18Z</dc:date>
    <item>
      <title>Can you help me get a number value and average it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-a-number-value-and-average-it/m-p/450385#M173115</link>
      <description>&lt;P&gt;I am trying to get a value, in this case it is the # of seconds to respond, so that I can graph it or set alerts to it.  Below are the log entries I am dealing with.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;STATUS | wrapper  | main    | 2019/02/10 10:38:08.885 | Pinging the JVM took 5 seconds to respond.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I need help pulling the number and the search for being able to graph this per a host.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2019 17:45:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-a-number-value-and-average-it/m-p/450385#M173115</guid>
      <dc:creator>orchapellico</dc:creator>
      <dc:date>2019-02-10T17:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me get a number value and average it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-a-number-value-and-average-it/m-p/450386#M173116</link>
      <description>&lt;P&gt;Assuming your log format is consistent, this will do the trick &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=... sourcetype=...
| rex JVM\s\took\s(?&amp;lt;jvm_duration&amp;gt;\d+)\sseconds
| timechart avg(jvm_duration) AS jvm_duration by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Feb 2019 18:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-a-number-value-and-average-it/m-p/450386#M173116</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-02-10T18:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me get a number value and average it?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-a-number-value-and-average-it/m-p/450387#M173117</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YouShouldAlwaysSpecifyAnIndex AND sourcetype=AndSourcetypeToo
| rex "took\s+(?&amp;lt;responseSeconds&amp;gt;\d+)\s+seconds"
| timechart avg(responseSeconds) BY host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2019 08:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-help-me-get-a-number-value-and-average-it/m-p/450387#M173117</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-12T08:06:18Z</dc:date>
    </item>
  </channel>
</rss>

