<?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 calculate variance in an array? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-variance-in-an-array/m-p/641019#M222099</link>
    <description>&lt;P&gt;how do I do that?&amp;nbsp; I'm not familiar with external functions.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 18:20:33 GMT</pubDate>
    <dc:creator>dtakacssplunk</dc:creator>
    <dc:date>2023-04-21T18:20:33Z</dc:date>
    <item>
      <title>How to calculate variance in an array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-variance-in-an-array/m-p/641014#M222095</link>
      <description>&lt;P&gt;I would like to create a column that tells me the variance for the array&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval raw="1	session1	O1	S1	5 6 7 9#
2	session2	O2	S2	99 55 77 999#
3	session3	O1	S1	995 55 77 999#
4	session4	O1	S1	1 2 4 1#" 
| makemv raw delim="#" 
| mvexpand raw 
| rename raw as _raw 
| rex "(?&amp;lt;User&amp;gt;\S+)\s+(?&amp;lt;ClientSession&amp;gt;\S+)\s+(?&amp;lt;Organization&amp;gt;\S+)\s+(?&amp;lt;Section&amp;gt;\S+)\s+(?&amp;lt;downloadspeed_file1&amp;gt;\S+)\s+(?&amp;lt;downloadspeed_file2&amp;gt;\S+)\s+(?&amp;lt;downloadspeed_file3&amp;gt;\S+)\s+(?&amp;lt;downloadspeed_file4&amp;gt;\S+)" 
| eval downloadSpeedsArray=json_array(downloadspeed_file1, downloadspeed_file2, downloadspeed_file3, downloadspeed_file4)
| table User ClientSession Organization Section downloadspeed_file1, downloadspeed_file2, downloadspeed_file3, downloadspeed_file4 downloadSpeedsArray variance&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you please help me how to calculate this column.&amp;nbsp; Is the variance normalized across rows?&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="aa.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25036i33853345ADA1D8F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="aa.png" alt="aa.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 18:16:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-variance-in-an-array/m-p/641014#M222095</guid>
      <dc:creator>dtakacssplunk</dc:creator>
      <dc:date>2023-04-21T18:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate variance in an array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-variance-in-an-array/m-p/641018#M222098</link>
      <description>&lt;P&gt;I think you'll need to write an external command for that.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 18:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-variance-in-an-array/m-p/641018#M222098</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-04-21T18:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate variance in an array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-variance-in-an-array/m-p/641019#M222099</link>
      <description>&lt;P&gt;how do I do that?&amp;nbsp; I'm not familiar with external functions.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 18:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-variance-in-an-array/m-p/641019#M222099</guid>
      <dc:creator>dtakacssplunk</dc:creator>
      <dc:date>2023-04-21T18:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate variance in an array?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-variance-in-an-array/m-p/641020#M222100</link>
      <description>&lt;P&gt;There's too much to it to get into here, but Splunk has documentation on the subject.&amp;nbsp; See&amp;nbsp;&lt;A href="https://dev.splunk.com/enterprise/docs/devtools/customsearchcommands/createcustomsearchcmd/" target="_blank"&gt;https://dev.splunk.com/enterprise/docs/devtools/customsearchcommands/createcustomsearchcmd/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 18:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-calculate-variance-in-an-array/m-p/641020#M222100</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-04-21T18:23:17Z</dc:date>
    </item>
  </channel>
</rss>

