<?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: random() function not working in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63711#M2168</link>
    <description>&lt;P&gt;Even still, shouldn't a randomizer be random and not a repeatable hash value?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2010 04:51:29 GMT</pubDate>
    <dc:creator>Jason</dc:creator>
    <dc:date>2010-10-06T04:51:29Z</dc:date>
    <item>
      <title>random() function not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63708#M2165</link>
      <description>&lt;P&gt;I'm trying to pull a random item from a set of splunk data, so to test I have set up this simple search:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index="_internal" | stats count by component | fields - count | eval Random=random() | sort - Random | head 1&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;However, when I run it over a constant time period (no new events arriving), I always end up with the &lt;B&gt;same component and Random number&lt;/B&gt;.  The list of components pre-eval/sort/head is anywhere from 2-30 depending on the time range. Is this broken?&lt;/P&gt;

&lt;P&gt;Tested on standard Splunk 4.1.2, 4.1.3, 4.1.4, 4.1.5 on Linux64/Ubuntu 8.04 LTS.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2010 04:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63708#M2165</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-10-05T04:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: random() function not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63709#M2166</link>
      <description>&lt;P&gt;Nothing looks wrong there.  And i just created this in my instance to test it and it works fine. &lt;/P&gt;

&lt;P&gt;Does the search language work fine when you do it manually (without any macro)? 
Are you sure there are more than two events on the left hand side?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2010 06:00:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63709#M2166</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-10-05T06:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: random() function not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63710#M2167</link>
      <description>&lt;P&gt;I think the randomizer seed is based on &lt;CODE&gt;_time&lt;/CODE&gt; of the event.  I think I heard that at Splunk .Conf 2010 in one of the sessions; but I could be remembering incorrectly.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2010 00:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63710#M2167</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-10-06T00:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: random() function not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63711#M2168</link>
      <description>&lt;P&gt;Even still, shouldn't a randomizer be random and not a repeatable hash value?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2010 04:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63711#M2168</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-10-06T04:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: random() function not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63712#M2169</link>
      <description>&lt;P&gt;A good search to use when testing (should work on any Splunk) is index="_internal" | stats count by component | fields - count | eval Random=random() | sort - Random | head 2&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2010 21:50:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63712#M2169</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-10-06T21:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: random() function not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63713#M2170</link>
      <description>&lt;P&gt;Tested and repeated same behavior on same server, version 4.1.5, 4.1.3, 4.1.2. Submitted to support to test on other Linux servers, case 49146.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2010 22:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63713#M2170</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-10-06T22:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: random() function not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63714#M2171</link>
      <description>&lt;P&gt;Seems to be a bug related to Ubuntu 8.04 LTS, 64 bit. Running the same search as above on an Ubuntu 9.10 server, and on Windows XP, works as expected. Support has also reported that 8.04 32 bit does not have this issue.&lt;/P&gt;

&lt;P&gt;Bug SPL-34570 filed and support says will be fixed in 4.1.6.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2010 20:49:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63714#M2171</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-10-12T20:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: random() function not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63715#M2172</link>
      <description>&lt;P&gt;Original post was about a search macro including randomization. The problem turned out to be with the random() function itself on the box, so I edited the original post.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2010 20:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/random-function-not-working/m-p/63715#M2172</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2010-10-12T20:54:54Z</dc:date>
    </item>
  </channel>
</rss>

