<?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 Create Scatter Diagram That Show Data Fall Within Average Range in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292079#M88227</link>
    <description>&lt;P&gt;Hi all, i try to create a scatter diagram that will show idea range of values and how many fall within it. I try use timechart but it seem like didn't work. I tried few different way already it still fail. Code below show below is the code using for extract result(show by red colour arrow in picture).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   Customer="xyz" ID=yvalue |timechart span=1m avg(Value) as yvalue 
  |appendcols [search Customer="xyz" ID=xvalue |timechart span=1m avg(Value) as xvalue] 
  |table xvalue, yvalue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And i need 1 more coding for draw the result acceptable range as show at the image below:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2679i75A010CB52B55374/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;And i wish to display the rage of it as show by black colour error in the picture. Mind to share with me how should i achieve it. Thank you very much.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2017 07:51:18 GMT</pubDate>
    <dc:creator>qygoh</dc:creator>
    <dc:date>2017-03-23T07:51:18Z</dc:date>
    <item>
      <title>Create Scatter Diagram That Show Data Fall Within Average Range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292079#M88227</link>
      <description>&lt;P&gt;Hi all, i try to create a scatter diagram that will show idea range of values and how many fall within it. I try use timechart but it seem like didn't work. I tried few different way already it still fail. Code below show below is the code using for extract result(show by red colour arrow in picture).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   Customer="xyz" ID=yvalue |timechart span=1m avg(Value) as yvalue 
  |appendcols [search Customer="xyz" ID=xvalue |timechart span=1m avg(Value) as xvalue] 
  |table xvalue, yvalue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And i need 1 more coding for draw the result acceptable range as show at the image below:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2679i75A010CB52B55374/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;And i wish to display the rage of it as show by black colour error in the picture. Mind to share with me how should i achieve it. Thank you very much.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 07:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292079#M88227</guid>
      <dc:creator>qygoh</dc:creator>
      <dc:date>2017-03-23T07:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create Scatter Diagram That Show Data Fall Within Average Range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292080#M88228</link>
      <description>&lt;P&gt;Helping with this one will require us to understand more about the underlying data.  &lt;/P&gt;

&lt;P&gt;We have literally &lt;STRONG&gt;no&lt;/STRONG&gt; idea what kind of values of &lt;CODE&gt;yvalue&lt;/CODE&gt; might be acceptable for any given &lt;CODE&gt;xvalue&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;I did notice that you aren't really using &lt;CODE&gt;_time&lt;/CODE&gt; for anything, so don't use &lt;CODE&gt;timechart&lt;/CODE&gt;, just use &lt;CODE&gt;stats&lt;/CODE&gt;.  Also, just in case your files ever get big, you might run into problems with the maximum record limits of a subsearch on your &lt;CODE&gt;| append&lt;/CODE&gt;.  You can make them part of the regular search, and that problem will never occur.  And, you should always tell splunk what &lt;CODE&gt;index&lt;/CODE&gt;(es) you want to look at.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo Customer="xyz" (ID=xvalue OR ID=yvalue)
| bin _time span=1m
| xvalue=if(ID=xvalue,Value,null())
| yvalue=if(ID=yvalue,Value,null())
| stats avg(xvalue) as xvalue, avg(yvalue) as yvalue by Customer _time
| table xvalue yvalue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If there is some relationship between the xvalues and yvalues, then code like this might help you figure out what it is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bin bins=10  xvalue as xbin
| bin bins=10  yvalue as ybin
| chart count over xbin by ybin
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...or...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bin bins=10  xvalue as xbin
| rex mode=sed field=xbin "s/-\d+$//g"
| eval xbin=tonumber(xbin)
| stats 
    avg(yvalue) as yavg, stdev(yvalue) as ystdev,  sum(yvalue) as yweight,
    perc10(yvalue) as y10, perc90(yvalue) as y90, count as ycount  
    by xbin 
| eval series ="by xbin"
| xyseries xbin series yavg ystdev y10 y90 ycount
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Mar 2017 21:22:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292080#M88228</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-24T21:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create Scatter Diagram That Show Data Fall Within Average Range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292081#M88229</link>
      <description>&lt;P&gt;Hi Dal, thank you very much for your response. when i replace my code with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=foo Customer="xyz" (ID=xvalue OR ID=yvalue)
 | bin _time span=1m
 | xvalue=if(ID=xvalue,Value,null())
 | yvalue=if(ID=yvalue,Value,null())
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it didn't work. I got an error message: Unknown search command 'xvalue'. Would you mind to share with me how to resolve it? Thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 04:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292081#M88229</guid>
      <dc:creator>qygoh</dc:creator>
      <dc:date>2017-03-27T04:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create Scatter Diagram That Show Data Fall Within Average Range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292082#M88230</link>
      <description>&lt;P&gt;I found it need to add "Eval" in front of it.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 07:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292082#M88230</guid>
      <dc:creator>qygoh</dc:creator>
      <dc:date>2017-03-27T07:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create Scatter Diagram That Show Data Fall Within Average Range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292083#M88231</link>
      <description>&lt;P&gt;For your information acceptable range  show by black colour arrows is theoretical value calculated. Meanwhile value show by red colour arrow is value we get for experiment.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 08:01:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-Scatter-Diagram-That-Show-Data-Fall-Within-Average-Range/m-p/292083#M88231</guid>
      <dc:creator>qygoh</dc:creator>
      <dc:date>2017-03-27T08:01:37Z</dc:date>
    </item>
  </channel>
</rss>

