<?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 do you average multiple stats values at one time stamp as a timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262916#M189770</link>
    <description>&lt;P&gt;Stats_value and time_stamp are two different columns. Also there's about 4000 rows... I just don't know how to average each 5 minute increment as one value and graph it. It just says no results found if I do | timechart avg(stats_value). &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:16:03 GMT</pubDate>
    <dc:creator>amandaxtru</dc:creator>
    <dc:date>2020-09-29T10:16:03Z</dc:date>
    <item>
      <title>How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262913#M189767</link>
      <description>&lt;P&gt;I have multiple values connected to a timestamp at 5 minute intervals and I want to get the average of these multiple values at each interval and graph them as a timechart.&lt;/P&gt;

&lt;P&gt;For example:&lt;BR /&gt;
Values/Timestamp&lt;BR /&gt;
123.54/21-JUN-16 01:00:00&lt;BR /&gt;
76.43/21-JUN-16 01:00:00&lt;BR /&gt;
6.6/21-JUN-16 01:00:00&lt;BR /&gt;
4.3/21-JUN-16 01:00:00&lt;/P&gt;

&lt;P&gt;65.6/21-JUN-16 01:05:00&lt;BR /&gt;
55.4/21-JUN-16 01:05:00&lt;BR /&gt;
38.84/21-JUN-16 01:05:00&lt;BR /&gt;
5.57/21-JUN-16 01:05:00&lt;BR /&gt;
76/21-JUN-16 01:05:00&lt;BR /&gt;
233.45/21-JUN-16 01:05:00&lt;BR /&gt;
675.33/21-JUN-16 01:05:00&lt;/P&gt;

&lt;P&gt;I tried the query &lt;BR /&gt;
| timechart span=5m avg(stats_value) &lt;/P&gt;

&lt;P&gt;pls help&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 18:10:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262913#M189767</guid>
      <dc:creator>amandaxtru</dc:creator>
      <dc:date>2016-07-15T18:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262914#M189768</link>
      <description>&lt;P&gt;Is each event one line or multi line?&lt;/P&gt;

&lt;P&gt;If each one is one line then |timechart  avg(Values_field)&lt;/P&gt;

&lt;P&gt;If it's multi line events then your best bet is to break each line into one event and use the same search.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 22:49:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262914#M189768</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-07-15T22:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262915#M189769</link>
      <description>&lt;P&gt;If Timestamp is the name of the field, try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats avg(Values) as v by Timestamp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;else, try this&lt;BR /&gt;
    ... | stats avg(Values) as v by _time&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 23:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262915#M189769</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-15T23:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262916#M189770</link>
      <description>&lt;P&gt;Stats_value and time_stamp are two different columns. Also there's about 4000 rows... I just don't know how to average each 5 minute increment as one value and graph it. It just says no results found if I do | timechart avg(stats_value). &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262916#M189770</guid>
      <dc:creator>amandaxtru</dc:creator>
      <dc:date>2020-09-29T10:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262917#M189771</link>
      <description>&lt;P&gt;I forgot to mention that there's like 4000 rows. Sadly those two don't seem to work. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;BR /&gt;
I used&lt;BR /&gt;
| dbquery "routerdb" "select time_stamp, stats_value from tbl_test_stats" | stats avg(stats_value) by time_stamp&lt;BR /&gt;
and it said no results. &lt;BR /&gt;
Stats_value and time_stamp are two different columns. Pls help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262917#M189771</guid>
      <dc:creator>amandaxtru</dc:creator>
      <dc:date>2020-09-29T10:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262918#M189772</link>
      <description>&lt;P&gt;Ok so your time extraction must be "off".  Does the _time field show up for each event?   If it does, the time column should appear on the left of each event when you do a normal&lt;BR /&gt;
Search.  AND it should match the DATETIME stamp in the events.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 13:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262918#M189772</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-07-18T13:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262919#M189773</link>
      <description>&lt;P&gt;Can you share your props.conf settings for this input?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 13:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262919#M189773</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-07-18T13:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262920#M189774</link>
      <description>&lt;P&gt;It kinda looks like this:&lt;BR /&gt;
time_stamp           stats_value&lt;BR /&gt;
1466485800.000  132.87515&lt;BR /&gt;
1466490600.000  59.48096&lt;BR /&gt;
1466491500.000  64.9257&lt;BR /&gt;
1466492400.000  67.09146&lt;BR /&gt;
1466486400.000  70.14782&lt;BR /&gt;
1466487000.000  82.2223&lt;BR /&gt;
1466488200.000  99.02853&lt;/P&gt;

&lt;P&gt;Graphing the first 1000 entries seems to work but I wanted to average out all the stats_values that are associated with one time_stamp. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:16:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262920#M189774</guid>
      <dc:creator>amandaxtru</dc:creator>
      <dc:date>2020-09-29T10:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262921#M189775</link>
      <description>&lt;P&gt;What do you get when you do &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | dbquery "routerdb" "select time_stamp, stats_value from tbl_test_stats" | table time_stamp, stats_value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, can you try converting the stats_value field to number, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery "routerdb" "select time_stamp, stats_value from tbl_test_stats" | convert num(stats_value) as stats_value | stats avg(stats_value) by time_stamp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jul 2016 13:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262921#M189775</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-18T13:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262922#M189776</link>
      <description>&lt;P&gt;I don't know why none of my comments are posting.&lt;BR /&gt;
How do I access the props.conf? I don't think I have access to the file. &lt;BR /&gt;
Also I'm using the general search for this query.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 13:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262922#M189776</guid>
      <dc:creator>amandaxtru</dc:creator>
      <dc:date>2016-07-18T13:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262923#M189777</link>
      <description>&lt;P&gt;The time_stamp looks like 1466485800.000 and a sample stats_value is 132.87515&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:16:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262923#M189777</guid>
      <dc:creator>amandaxtru</dc:creator>
      <dc:date>2020-09-29T10:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262924#M189778</link>
      <description>&lt;P&gt;For the first query I get no results found which makes no sense...&lt;/P&gt;

&lt;P&gt;The second query the "| concert num(stats_value) as stats_value" works but when "| stats avg(stats_value) by time_stamp" is added it also returns no results.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262924#M189778</guid>
      <dc:creator>amandaxtru</dc:creator>
      <dc:date>2020-09-29T10:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262925#M189779</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery "routerdb" "select time_stamp, stats_value from tbl_test_stats" | eval _time=time_stamp  | timechart span=5m avg(stats_value)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:34:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262925#M189779</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-18T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262926#M189780</link>
      <description>&lt;P&gt;It would appear the issue is with the dbquery, not the stats. If the first doesn't return any results, the second will not work.&lt;/P&gt;

&lt;P&gt;Do you see any errors in the DBConnect app? I assume you are using v1?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:34:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262926#M189780</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-18T14:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262927#M189781</link>
      <description>&lt;P&gt;Okay this makes a lot more sense now... There are about 300 stats_values associated with each time_stamp... I thought it was only a couple. What should I do to make this data meaningful if I can't just average 300 values or each time_stamp?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262927#M189781</guid>
      <dc:creator>amandaxtru</dc:creator>
      <dc:date>2020-09-29T10:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262928#M189782</link>
      <description>&lt;P&gt;What if you add "limit=4000" to you dbquery command?  Or limit=0&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262928#M189782</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-07-18T14:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do you average multiple stats values at one time stamp as a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262929#M189783</link>
      <description>&lt;P&gt;Turns out there are about 300 stats_values associated with each time_stamp... I thought it was only a couple. What should I do to make this data meaningful if I can't just average 300 values or each time_stamp?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:16:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-average-multiple-stats-values-at-one-time-stamp-as-a/m-p/262929#M189783</guid>
      <dc:creator>amandaxtru</dc:creator>
      <dc:date>2020-09-29T10:16:23Z</dc:date>
    </item>
  </channel>
</rss>

