<?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: Top Values of 2 fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41476#M9612</link>
    <description>&lt;P&gt;Ron, &lt;/P&gt;

&lt;P&gt;I used your example but it seems that Splunk can only handle 6 digits precision using the top search command.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2012 16:03:23 GMT</pubDate>
    <dc:creator>lpolo</dc:creator>
    <dc:date>2012-03-07T16:03:23Z</dc:date>
    <item>
      <title>Top Values of 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41472#M9608</link>
      <description>&lt;P&gt;Hi, I'm trying to create a search that would show the following data&lt;/P&gt;

&lt;P&gt;Top unique field1      Top field2&lt;/P&gt;

&lt;P&gt;E.g. (Username and command)&lt;/P&gt;

&lt;P&gt;Get top unique Usernames and the corresponding top "command" executed by that "Username"&lt;/P&gt;

&lt;P&gt;Username Command&lt;/P&gt;

&lt;P&gt;user1    write&lt;/P&gt;

&lt;P&gt;Hope someone can help, thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2011 11:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41472#M9608</guid>
      <dc:creator>mcm10285</dc:creator>
      <dc:date>2011-02-09T11:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Top Values of 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41473#M9609</link>
      <description>&lt;P&gt;It sounds like you want a list of the top command performed by each user.  This will work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top limit=1 command by user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, if you only wanted the top 10 users responsible for the top commands, do it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top limit=1 command by user | head 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Feb 2011 12:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41473#M9609</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-09T12:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Top Values of 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41474#M9610</link>
      <description>&lt;P&gt;You can change the "limit" option to include more top commands per user.  You can also substitute "rare" for "top", if you wanted to find the least used.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2011 12:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41474#M9610</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-09T12:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Top Values of 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41475#M9611</link>
      <description>&lt;P&gt;Ron,&lt;/P&gt;

&lt;P&gt;Thanks for this.  However, I guess I was not really clear with the inquiry.  What I was looking for was a form search containing 2 input fields and matching those 2 fields and showing it as an event.&lt;/P&gt;

&lt;P&gt;I came up with a form search XML (could not paste everything) and it would seem to be ok.  Would appreciate more inputs for improvement, thanks.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;FORM&gt;&lt;BR /&gt;
    &lt;LABEL&gt;MySearch&lt;/LABEL&gt;&lt;BR /&gt;
    &lt;SEARCHTEMPLATE&gt;index=hlr|search USERID=$USERID$ COMMAND=$COMMAND$&lt;/SEARCHTEMPLATE&gt; ...&lt;P&gt;&lt;/P&gt;&lt;/FORM&gt;</description>
      <pubDate>Thu, 10 Feb 2011 14:41:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41475#M9611</guid>
      <dc:creator>mcm10285</dc:creator>
      <dc:date>2011-02-10T14:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Top Values of 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41476#M9612</link>
      <description>&lt;P&gt;Ron, &lt;/P&gt;

&lt;P&gt;I used your example but it seems that Splunk can only handle 6 digits precision using the top search command.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2012 16:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41476#M9612</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2012-03-07T16:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Top Values of 2 fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41477#M9613</link>
      <description>&lt;P&gt;I got accurate results if I use:&lt;/P&gt;

&lt;P&gt;top limit=10 command,user&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2012 16:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-Values-of-2-fields/m-p/41477#M9613</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2012-03-07T16:08:56Z</dc:date>
    </item>
  </channel>
</rss>

