<?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: Use TimePicker to average on a specific field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246375#M175879</link>
    <description>&lt;P&gt;It's going to look something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval PerMinute = 60*MSG_1_COUNT / ($timerange.latest$ - $timerange.earliest$)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Jan 2017 20:45:48 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-01-18T20:45:48Z</dc:date>
    <item>
      <title>Use TimePicker to average on a specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246371#M175875</link>
      <description>&lt;P&gt;I have a dashboard with several inputs to include a timepicker, one of my panels charts the sums of specific fields over the time picked. I would like to add another column that acts upon one of those sums and get the avg per minute.&lt;/P&gt;

&lt;P&gt;For example time picked is 4 hours&lt;BR /&gt;
Column 1 = 480&lt;/P&gt;

&lt;P&gt;The new column would then need to take that result and divide it by the number of minutes specified in the time picker&lt;BR /&gt;
480/240minutes = 2 per minute&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 19:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246371#M175875</guid>
      <dc:creator>pwilly</dc:creator>
      <dc:date>2017-01-18T19:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use TimePicker to average on a specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246372#M175876</link>
      <description>&lt;P&gt;The community can best help you if you share part or whole of your search query. That way we can more efficiently help by targeting the specific fields and commands you are using.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:24:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246372#M175876</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-01-18T20:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Use TimePicker to average on a specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246373#M175877</link>
      <description>&lt;P&gt;My search looks like the following&lt;BR /&gt;
index=Foo MGR_NAME=$Manager$ NAME=$Name$ AND $Params$ | eval TotalThroughput=(MSG_1_COUNT)+(MSG_2_COUNT)| chart sum(MSG_1_COUNT) AS In sum(MSG_2_COUNT) AS Out max(HIGH_MSG_DEPTH) as HighMSGDepth sum(TotalThroughput) AS TotalThroughput by NAME | eval NAME=substr(NAME,1,48) | sort - TotalThroughput&lt;/P&gt;

&lt;P&gt;I would like an additional column that per NAME looks at the sum of MSG_1_COUNT for that NAME and divides it by the number of minutes that will be specified in the timepicker input so I can get average MSG_1_COUNT per Minute&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:29:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246373#M175877</guid>
      <dc:creator>pwilly</dc:creator>
      <dc:date>2020-09-29T12:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Use TimePicker to average on a specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246374#M175878</link>
      <description>&lt;P&gt;Try this. The eval on 2nd last line will add a field called Minutes, containing number of minutes in the selected timerange. You can use that for your 'per min' calculation. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=Foo MGR_NAME=$Manager$ NAME=$Name$ AND $Params$ | eval TotalThroughput=(MSG_1_COUNT)+(MSG_2_COUNT)| chart sum(MSG_1_COUNT) AS In sum(MSG_2_COUNT) AS Out max(HIGH_MSG_DEPTH) as HighMSGDepth sum(TotalThroughput) AS TotalThroughput by NAME | eval NAME=substr(NAME,1,48) | sort - TotalThroughput 
| eval Minutes=[| gentimes start=-1 | addinfo | eval search=round((info_max_time-info_min_time)/60) | table search] 
| eval MSG_1_COUNT_PerMin=MSG_1_COUNT/Minutes | fields - Minutes
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:44:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246374#M175878</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-18T20:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use TimePicker to average on a specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246375#M175879</link>
      <description>&lt;P&gt;It's going to look something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval PerMinute = 60*MSG_1_COUNT / ($timerange.latest$ - $timerange.earliest$)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:45:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246375#M175879</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-01-18T20:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use TimePicker to average on a specific field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246376#M175880</link>
      <description>&lt;P&gt;cute.  I hadn't thought of using addinfo instead of pulling it off the interface.  &lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Use-TimePicker-to-average-on-a-specific-field/m-p/246376#M175880</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-01-18T20:54:18Z</dc:date>
    </item>
  </channel>
</rss>

