<?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 can I make interpolation between given two points in Splunk, where time variable is not involved? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624290#M217054</link>
    <description>&lt;P&gt;Play around with the window, the bigger the window, the smoother the average will be. However, your Y axis has a very small scale, so even if your y-value goes up by 0.005, it will appear like a bigger jump.&lt;/P&gt;&lt;P&gt;Here's an example that creates dummy data based on your example green/blue/orange numbers. I've extrapolated out further data points.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=900
| streamstats c
| fields - _time
| eval X=case(c%3=1, "green", c%3=2, "blue", c%3=0, "orange")
| eval dist=130-((floor(c/3))/100)
| eval t=0.0051 - ((floor(c/3)) / 100000)
| eval Y=case(c%3=1, t, c%3=2, -t, c%3=0, random() % (t * 10000) / 10000 - (t/2))
| table X dist Y
```| streamstats window=5 avg(Y) as avg by X
| eval Y=if(X="orange", Y, avg)
| fields - avg```&lt;/LI-CODE&gt;&lt;P&gt;As you can see the blue/green lines are sawtooth in the scatter, but if you uncomment the last 3 lines, the blue/green lines become smooth.&lt;/P&gt;&lt;P&gt;Does that not happen?&lt;/P&gt;&lt;P&gt;As far as making green/blue lines smaller, it's not possible with the scatter graph&lt;/P&gt;&lt;P&gt;Would a like chart work if you turn the data to a format suitable for a line chart?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart values(Y) over dist by X
| streamstats window=15 avg(green) as green avg(blue) as blue&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 14 Dec 2022 22:43:32 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2022-12-14T22:43:32Z</dc:date>
    <item>
      <title>How can I make interpolation between given two points in Splunk, where time variable is not involved?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/623534#M216755</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Considering the image shared below:-&amp;nbsp; x1 is my x-axis and y1 is my y-axis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SSwaminathan90_0-1670399049279.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22906i9559D9789F11F340/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SSwaminathan90_0-1670399049279.png" alt="SSwaminathan90_0-1670399049279.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would like to interpolate values for x1, var1 &amp;amp; var2 and not for y1 as shown below: -&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SSwaminathan90_2-1670399179547.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22908i85700A446B49064E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SSwaminathan90_2-1670399179547.png" alt="SSwaminathan90_2-1670399179547.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;@interpolation, @ scatterplot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any leads are welcome here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 08:19:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/623534#M216755</guid>
      <dc:creator>SSwaminathan90</dc:creator>
      <dc:date>2022-12-07T08:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make interpolation between given two points in Splunk, where time variable is not involved?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/623659#M216799</link>
      <description>&lt;P&gt;Add this to your SPL&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makecontinuous x1
| filldown var1 var2&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Dec 2022 02:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/623659#M216799</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-12-08T02:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make interpolation between given two points in Splunk, where time variable is not involved?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624162#M216994</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion.&amp;nbsp; with that query, I was able to create the below graph. But if you see the boundary lines (green &amp;amp; blue), though it looks like a straight line but not smooth because for every value of xaxis, green &amp;amp; blue line values are computed with the line equation. So my aim is to make the line as smooth as possible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st question:- I would like to consider few random points between xaxis value 15 and 130. and interpolate between the random points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any leads are welcome on how create a interpolation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd question:-&amp;nbsp; Is it possible to increase the marker size for orange dots and reduce the marker size for blue and green lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any leads are welcome.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Plot.PNG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22991iAF8138C91C36C7A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Plot.PNG" alt="Plot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 16:00:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624162#M216994</guid>
      <dc:creator>SSwaminathan90</dc:creator>
      <dc:date>2022-12-13T16:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make interpolation between given two points in Splunk, where time variable is not involved?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624178#M217003</link>
      <description>&lt;P&gt;Use streamstats on that data set and reference the blue and green variables&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats window=5 avg(blue) as blue avg(green) as green&lt;/LI-CODE&gt;&lt;P&gt;where blue and green are the names of your variables&lt;/P&gt;&lt;P&gt;What's the visualisation - scatter or line chart? What does your data table look like?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 23:51:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624178#M217003</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-12-13T23:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make interpolation between given two points in Splunk, where time variable is not involved?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624191#M217009</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;What's the visualisation - scatter or line chart? What does your data table look like?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;FONT color="#000000"&gt;Ans:-&amp;nbsp; Its a scatter plot. here I would like to increase the marker size for orange dots and reduce marker size for green &amp;amp; blue dots.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#000000"&gt;My data table looks like as below:-&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE width="190"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="62"&gt;X&lt;/TD&gt;&lt;TD width="64"&gt;dist&lt;/TD&gt;&lt;TD width="64"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62"&gt;green&lt;/TD&gt;&lt;TD width="64"&gt;130&lt;/TD&gt;&lt;TD width="64"&gt;-0.0051&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62"&gt;blue&lt;/TD&gt;&lt;TD width="64"&gt;130&lt;/TD&gt;&lt;TD width="64"&gt;0.0051&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62"&gt;orange&lt;/TD&gt;&lt;TD width="64"&gt;130&lt;/TD&gt;&lt;TD width="64"&gt;0.0015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62"&gt;green&lt;/TD&gt;&lt;TD width="64"&gt;129.99&lt;/TD&gt;&lt;TD width="64"&gt;-0.005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62"&gt;blue&lt;/TD&gt;&lt;TD width="64"&gt;129.99&lt;/TD&gt;&lt;TD width="64"&gt;0.005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62"&gt;green&lt;/TD&gt;&lt;TD width="64"&gt;129.98&lt;/TD&gt;&lt;TD width="64"&gt;-0.005&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="62"&gt;blue&lt;/TD&gt;&lt;TD width="64"&gt;129.98&lt;/TD&gt;&lt;TD width="64"&gt;0.005&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Dec 2022 06:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624191#M217009</guid>
      <dc:creator>SSwaminathan90</dc:creator>
      <dc:date>2022-12-14T06:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make interpolation between given two points in Splunk, where time variable is not involved?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624210#M217026</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;But still, I could not able to see the smooth line profile. It is somewhat looks like sawtooth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SSwaminathan90_0-1671014390048.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22992i2625BC2B1BDDE6A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SSwaminathan90_0-1671014390048.png" alt="SSwaminathan90_0-1671014390048.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 10:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624210#M217026</guid>
      <dc:creator>SSwaminathan90</dc:creator>
      <dc:date>2022-12-14T10:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I make interpolation between given two points in Splunk, where time variable is not involved?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624290#M217054</link>
      <description>&lt;P&gt;Play around with the window, the bigger the window, the smoother the average will be. However, your Y axis has a very small scale, so even if your y-value goes up by 0.005, it will appear like a bigger jump.&lt;/P&gt;&lt;P&gt;Here's an example that creates dummy data based on your example green/blue/orange numbers. I've extrapolated out further data points.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=900
| streamstats c
| fields - _time
| eval X=case(c%3=1, "green", c%3=2, "blue", c%3=0, "orange")
| eval dist=130-((floor(c/3))/100)
| eval t=0.0051 - ((floor(c/3)) / 100000)
| eval Y=case(c%3=1, t, c%3=2, -t, c%3=0, random() % (t * 10000) / 10000 - (t/2))
| table X dist Y
```| streamstats window=5 avg(Y) as avg by X
| eval Y=if(X="orange", Y, avg)
| fields - avg```&lt;/LI-CODE&gt;&lt;P&gt;As you can see the blue/green lines are sawtooth in the scatter, but if you uncomment the last 3 lines, the blue/green lines become smooth.&lt;/P&gt;&lt;P&gt;Does that not happen?&lt;/P&gt;&lt;P&gt;As far as making green/blue lines smaller, it's not possible with the scatter graph&lt;/P&gt;&lt;P&gt;Would a like chart work if you turn the data to a format suitable for a line chart?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart values(Y) over dist by X
| streamstats window=15 avg(green) as green avg(blue) as blue&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Dec 2022 22:43:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-interpolation-between-given-two-points-in-Splunk/m-p/624290#M217054</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-12-14T22:43:32Z</dc:date>
    </item>
  </channel>
</rss>

