<?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 &amp; Fields command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Top-Fields-command/m-p/417013#M120013</link>
    <description>&lt;P&gt;Your query is fetching top 5 sessionID for each host (all hosts will be shown). What was your requirement? &lt;/P&gt;

&lt;P&gt;Regarding removing the fields, the percent field name is misspelled (written as precent) hence it's not removed. For removing count, try to use field name count itself. (try &lt;CODE&gt;| fields - count, percent&lt;/CODE&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2019 14:41:20 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-04-16T14:41:20Z</dc:date>
    <item>
      <title>Top &amp; Fields command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-Fields-command/m-p/417012#M120012</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=uberAgent 
| top 5 SessionID by host | fields - Anzahl, precent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This code returns all events in the index instead of five and removes no counts and percent fields. Who can be the problem?&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6912i80AAF9BAACD89F2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 09:00:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-Fields-command/m-p/417012#M120012</guid>
      <dc:creator>anasshsa</dc:creator>
      <dc:date>2019-04-16T09:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Top &amp; Fields command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-Fields-command/m-p/417013#M120013</link>
      <description>&lt;P&gt;Your query is fetching top 5 sessionID for each host (all hosts will be shown). What was your requirement? &lt;/P&gt;

&lt;P&gt;Regarding removing the fields, the percent field name is misspelled (written as precent) hence it's not removed. For removing count, try to use field name count itself. (try &lt;CODE&gt;| fields - count, percent&lt;/CODE&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 14:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-Fields-command/m-p/417013#M120013</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-16T14:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Top &amp; Fields command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Top-Fields-command/m-p/417014#M120014</link>
      <description>&lt;P&gt;@somesoni2 actually better would be to use &lt;CODE&gt;showperc=f&lt;/CODE&gt; and &lt;CODE&gt;showcount=f&lt;/CODE&gt; arguments in the top command itself.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| top 5 SessionID by host showperc=f showcount=f
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;@anasshsa your query id giving you top 5 sessions for each host. If that is your requirement you can try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=uberAgent 
| top 5 SessionID by host showperc=f 
| xyseries host SessionID count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please let us know if you are looking for something else.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 16:17:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Top-Fields-command/m-p/417014#M120014</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-04-16T16:17:31Z</dc:date>
    </item>
  </channel>
</rss>

