<?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: troublesome charting in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23871#M4292</link>
    <description>&lt;P&gt;Still seeing some odd results, seems the results change depending on how long the time range is, if I use 4 hours I get peaks around 30 and when I use 24 hours I only get peaks around 12 so the average calculations seems to differ somehow.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Aug 2012 10:52:37 GMT</pubDate>
    <dc:creator>tuxford</dc:creator>
    <dc:date>2012-08-02T10:52:37Z</dc:date>
    <item>
      <title>troublesome charting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23869#M4290</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I have a chart that works for a time range of 60 minutes and looks like this:&lt;/P&gt;

&lt;P&gt;sourcetype="access_combined" "*.html" OR ".ajax" NOT "/tomcat-docs/healthcheck.html" | where other&amp;gt;0  | eval avg_sec=other/1000 | chart avg(avg_sec) by date_minute&lt;/P&gt;

&lt;P&gt;This gives me an average for each minute of that hour, I would like to do the same for longer time periods but are unable to find out how. If I extend the time range it sums the same minutes for each hour and makes an average of that instead of treating every minute of each hour as a separate entity. Anyone know a fix?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23869#M4290</guid>
      <dc:creator>tuxford</dc:creator>
      <dc:date>2020-09-28T12:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: troublesome charting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23870#M4291</link>
      <description>&lt;P&gt;You should use the timechart command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="access_combined" "*.html" OR ".ajax" NOT "/tomcat-docs/healthcheck.html" | where other&amp;gt;0  | eval avg_sec=other/1000 | timechart span=1m avg(avg_sec)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Aug 2012 10:47:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23870#M4291</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2012-08-02T10:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: troublesome charting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23871#M4292</link>
      <description>&lt;P&gt;Still seeing some odd results, seems the results change depending on how long the time range is, if I use 4 hours I get peaks around 30 and when I use 24 hours I only get peaks around 12 so the average calculations seems to differ somehow.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2012 10:52:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23871#M4292</guid>
      <dc:creator>tuxford</dc:creator>
      <dc:date>2012-08-02T10:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: troublesome charting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23872#M4293</link>
      <description>&lt;P&gt;Have you tried to modify the way charts deal with nulls? You might try "treat as zeros".&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2012 11:50:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23872#M4293</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2012-08-02T11:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: troublesome charting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23873#M4294</link>
      <description>&lt;P&gt;Yes, I've tried a lot of different ways now limited success. Basically what I want is to create an average that spans 1 minute in a larger time range where the chart is shown in a good way. It might be that my time range is too large when using a span of 1 minute and it simply won't work?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2012 13:21:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23873#M4294</guid>
      <dc:creator>tuxford</dc:creator>
      <dc:date>2012-08-02T13:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: troublesome charting</title>
      <link>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23874#M4295</link>
      <description>&lt;P&gt;The x axis can plot max 1000 points, and there are 1440 mins in a day. So it might be too wide. However, try to use "stats" to be sure you're getting the averages correct:  sourcetype="access_combined" "*.html" OR ".ajax" NOT "/tomcat-docs/healthcheck.html" | where other&amp;gt;0  | eval avg_sec=other/1000 | bucket _time span=1m | stat avg(avg_sec)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:11:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/troublesome-charting/m-p/23874#M4295</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2020-09-28T12:11:11Z</dc:date>
    </item>
  </channel>
</rss>

