<?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 How to edit my search to aggregate values from a single sample rather than all events in the time range? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-aggregate-values-from-a-single-sample/m-p/121171#M32591</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have a scripted input in my app which is polling data every 60 minutes. This data brings a particular field &lt;STRONG&gt;writeIOps&lt;/STRONG&gt; for 8 different volumes per controller from a storage product. I am looking to create a timechart to show sum of all writeIOps per controller so I need to do sum of all writeIOps for 8 volumes at a time and plot that sample on the chart. Basically the goal is to see at any point in time what was the total writeIOps for a particular controller and that data can come when i add writeIOps from all 8 volumes. &lt;/P&gt;

&lt;P&gt;Query looks like following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Index=A host="998048d1-831d-4a92-836a-7a4893524925" | timechart sum(writeIOps) AS writes by controllerLabel
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it looks like this data changes depending on the time frame you use in your dashboard. For example, we are calling a particular REST end point every 60 seconds and it is giving us writeIOps fields for 8 volumes (1 event per volume) per controller in a single sample at time T1. We are expecting to aggregate writeIOPs fields for only 8 volumes and plot that value on a time chart for that time T1. But the above query does not do that. Query will apply the search condition on all data that came in a given timeframe and do aggregation and plot a single value on a timechart. If a user is looking at 5 minutes span, the REST endpoint must have been called 5 times and we should have total 40 events per controller. Above query will do sum of writeIOps field from 40 events and plot a single value. How should I fix my query so that it is aggregating values from a single sample( 8 events only) rather then all events in the time frame?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2015 19:09:32 GMT</pubDate>
    <dc:creator>neha10</dc:creator>
    <dc:date>2015-01-28T19:09:32Z</dc:date>
    <item>
      <title>How to edit my search to aggregate values from a single sample rather than all events in the time range?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-aggregate-values-from-a-single-sample/m-p/121171#M32591</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have a scripted input in my app which is polling data every 60 minutes. This data brings a particular field &lt;STRONG&gt;writeIOps&lt;/STRONG&gt; for 8 different volumes per controller from a storage product. I am looking to create a timechart to show sum of all writeIOps per controller so I need to do sum of all writeIOps for 8 volumes at a time and plot that sample on the chart. Basically the goal is to see at any point in time what was the total writeIOps for a particular controller and that data can come when i add writeIOps from all 8 volumes. &lt;/P&gt;

&lt;P&gt;Query looks like following&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Index=A host="998048d1-831d-4a92-836a-7a4893524925" | timechart sum(writeIOps) AS writes by controllerLabel
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it looks like this data changes depending on the time frame you use in your dashboard. For example, we are calling a particular REST end point every 60 seconds and it is giving us writeIOps fields for 8 volumes (1 event per volume) per controller in a single sample at time T1. We are expecting to aggregate writeIOPs fields for only 8 volumes and plot that value on a time chart for that time T1. But the above query does not do that. Query will apply the search condition on all data that came in a given timeframe and do aggregation and plot a single value on a timechart. If a user is looking at 5 minutes span, the REST endpoint must have been called 5 times and we should have total 40 events per controller. Above query will do sum of writeIOps field from 40 events and plot a single value. How should I fix my query so that it is aggregating values from a single sample( 8 events only) rather then all events in the time frame?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 19:09:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-aggregate-values-from-a-single-sample/m-p/121171#M32591</guid>
      <dc:creator>neha10</dc:creator>
      <dc:date>2015-01-28T19:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to aggregate values from a single sample rather than all events in the time range?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-aggregate-values-from-a-single-sample/m-p/121172#M32592</link>
      <description>&lt;P&gt;Example: "| timechart max(mag) span=6h by place", Set the span=x to only include one timeframe of data points. It will sample in little chunks of data(time) that way. At least, I think that is what you are asking. &lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 19:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-aggregate-values-from-a-single-sample/m-p/121172#M32592</guid>
      <dc:creator>jdwest1</dc:creator>
      <dc:date>2015-01-28T19:56:21Z</dc:date>
    </item>
  </channel>
</rss>

