<?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 aggregate data in an index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-data-in-an-index/m-p/433217#M191135</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;you could try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=source_index | timechart span=1minute avg(your_integer_field) AS your_integer_field |  collect index=destination_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out the collect command: &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Collect"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Collect&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Greetings Chris&lt;/P&gt;</description>
    <pubDate>Tue, 06 Aug 2019 14:17:37 GMT</pubDate>
    <dc:creator>chris1337</dc:creator>
    <dc:date>2019-08-06T14:17:37Z</dc:date>
    <item>
      <title>How to aggregate data in an index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-data-in-an-index/m-p/433216#M191134</link>
      <description>&lt;P&gt;Right now we receive and store several data points per second in an index and do reporting on it.&lt;BR /&gt;
In the future we would like to aggregate this data by calculating the average value of all data points (integer values) per minute and store it in a seperate index,&lt;BR /&gt;
How do you do this?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 08:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-data-in-an-index/m-p/433216#M191134</guid>
      <dc:creator>philipfritsch</dc:creator>
      <dc:date>2019-08-06T08:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to aggregate data in an index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-data-in-an-index/m-p/433217#M191135</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;you could try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=source_index | timechart span=1minute avg(your_integer_field) AS your_integer_field |  collect index=destination_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check out the collect command: &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Collect"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Collect&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Greetings Chris&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 14:17:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-aggregate-data-in-an-index/m-p/433217#M191135</guid>
      <dc:creator>chris1337</dc:creator>
      <dc:date>2019-08-06T14:17:37Z</dc:date>
    </item>
  </channel>
</rss>

