<?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: What's the difference between chart functions list() and values()? Is there a similar function that doesn't dedup? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34748#M7551</link>
    <description>&lt;P&gt;list() does not dedup. Consider this query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=1h | eval foo=0 | stats list(foo) values(foo)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It yields 24 zeroes for list() and 1 zero for values().&lt;/P&gt;

&lt;P&gt;However, by default list() is limited to only yield the first 100 values, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/limitsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/limitsconf&lt;/A&gt; (list_maxsize).&lt;/P&gt;

&lt;P&gt;You can test your local limit with this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=1s | eval foo = starttime % 10000  | stats list(foo) values(foo)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You'll get 50 displayed each, with list having 50 more values and values having 9950 more values using the default limits.conf settings.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Feb 2013 00:15:50 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-02-16T00:15:50Z</dc:date>
    <item>
      <title>What's the difference between chart functions list() and values()? Is there a similar function that doesn't dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34747#M7550</link>
      <description>&lt;P&gt;Both list() and values() return distinct values of an MV field. Although list() claims to return the values in the order received, real world use isn't proving that out. It is also (apparently) lexicographically sorted, contrary to the docs. Is there a function that will return all values, dups and all, in the order of the log entries?&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=uexlog sid | transaction SID | stats list(uri) as URIs list(rtt) as RTT by SID 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns a list of SIDs, each with a list of URIs hit for that session and a list of RTTs. However, because list() dedups, the URIs and RTTs don't match up. And the list of URIs is most definitely in lexicographical order, not the original order of the events as received.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Jon&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2013 22:43:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34747#M7550</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2013-02-15T22:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference between chart functions list() and values()? Is there a similar function that doesn't dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34748#M7551</link>
      <description>&lt;P&gt;list() does not dedup. Consider this query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=1h | eval foo=0 | stats list(foo) values(foo)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It yields 24 zeroes for list() and 1 zero for values().&lt;/P&gt;

&lt;P&gt;However, by default list() is limited to only yield the first 100 values, see &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/limitsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/limitsconf&lt;/A&gt; (list_maxsize).&lt;/P&gt;

&lt;P&gt;You can test your local limit with this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=1s | eval foo = starttime % 10000  | stats list(foo) values(foo)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You'll get 50 displayed each, with list having 50 more values and values having 9950 more values using the default limits.conf settings.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2013 00:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34748#M7551</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-16T00:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference between chart functions list() and values()? Is there a similar function that doesn't dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34749#M7552</link>
      <description>&lt;P&gt;Dammit. You're right. The transaction command is the one getting me. Need mvlist=t. Apologies. Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2013 00:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34749#M7552</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2013-02-16T00:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference between chart functions list() and values()? Is there a similar function that doesn't dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34750#M7553</link>
      <description>&lt;P&gt;Here's one with multivalue string fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=1h | eval f1 = starttime % 7200 . "foo" | eval f2 = starttime % 10800 . "foo" | eval f = f1.",".f2 | fields - f1 f2 | makemv f delim="," | stats list(f) values(f)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does not dedup for me.&lt;/P&gt;

&lt;P&gt;Edit: Indeed, transaction can be a bugger.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2013 00:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34750#M7553</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-16T00:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference between chart functions list() and values()? Is there a similar function that doesn't dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34751#M7554</link>
      <description>&lt;P&gt;Is there a way to get list() finctionality with tstats...In my app we are currently using tstats to read from a Accelerated datamodel, but in one of the situation we need to retrieve multivalued field with sequence of the values intact.  Which is possible with list(), But tstats doent support list().&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 09:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34751#M7554</guid>
      <dc:creator>swarnkar</dc:creator>
      <dc:date>2016-09-13T09:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference between chart functions list() and values()? Is there a similar function that doesn't dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34752#M7555</link>
      <description>&lt;P&gt;&lt;CODE&gt;tstats&lt;/CODE&gt; isn't great with ordering... Ideally, you'd open a new question for this to explore the possibilities and alternatives.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 01:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34752#M7555</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-09-14T01:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference between chart functions list() and values()? Is there a similar function that doesn't dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34753#M7556</link>
      <description>&lt;P&gt;Sure I will. Thanks a lot for the response.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 05:10:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34753#M7556</guid>
      <dc:creator>swarnkar</dc:creator>
      <dc:date>2016-09-15T05:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: What's the difference between chart functions list() and values()? Is there a similar function that doesn't dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34754#M7557</link>
      <description>&lt;P&gt;good answer!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 05:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-s-the-difference-between-chart-functions-list-and-values-Is/m-p/34754#M7557</guid>
      <dc:creator>fujimori</dc:creator>
      <dc:date>2016-09-15T05:44:19Z</dc:date>
    </item>
  </channel>
</rss>

