<?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: Can splunk do stats multimode(field)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-splunk-do-stats-multimode-field/m-p/76607#M19382</link>
    <description>&lt;P&gt;Thanks.&lt;BR /&gt;
I will test it and let you know.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Feb 2012 12:35:19 GMT</pubDate>
    <dc:creator>lpolo</dc:creator>
    <dc:date>2012-02-29T12:35:19Z</dc:date>
    <item>
      <title>Can splunk do stats multimode(field)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-splunk-do-stats-multimode-field/m-p/76605#M19380</link>
      <description>&lt;P&gt;Splunk support the statistical function "mode(X)". According to the Splunk documentation this function returns the most frequent value of field  X. &lt;BR /&gt;
I was able to experience that Splunk reports the correct mode from a set of numbers that are unique. &lt;/P&gt;

&lt;P&gt;Is there an undocumented stats command or query that reports the multimode from a set of numbers that are not unique. &lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
 The mode of the set [1, 3, 3, 3, 3, 3, 7, 7, 12, 12, 17] is 3. The mode of set [3, 3, 6, 7, 7, 89, 89] is 89, 7, and 3 "Multimodal".&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2012 19:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-splunk-do-stats-multimode-field/m-p/76605#M19380</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2012-02-22T19:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can splunk do stats multimode(field)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-splunk-do-stats-multimode-field/m-p/76606#M19381</link>
      <description>&lt;P&gt;I do not know of a way using just stats.  If someone else has a solution, I'd love to see it.  Otherwise, you can grab a multimodal list with something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats count(EventCode) as count by EventCode | eventstats max(count) as mode_indicator | where count=mode_indicator | mvcombine delim="," EventCode | fields mode
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2012 22:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-splunk-do-stats-multimode-field/m-p/76606#M19381</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2012-02-22T22:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can splunk do stats multimode(field)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-splunk-do-stats-multimode-field/m-p/76607#M19382</link>
      <description>&lt;P&gt;Thanks.&lt;BR /&gt;
I will test it and let you know.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Feb 2012 12:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-splunk-do-stats-multimode-field/m-p/76607#M19382</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2012-02-29T12:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can splunk do stats multimode(field)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-splunk-do-stats-multimode-field/m-p/76608#M19383</link>
      <description>&lt;P&gt;I tested it seems to do the work.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2012 11:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-splunk-do-stats-multimode-field/m-p/76608#M19383</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2012-06-01T11:21:58Z</dc:date>
    </item>
  </channel>
</rss>

