<?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: How do I show stats where count is greater than 10, but without showing count field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164581#M46731</link>
    <description>&lt;P&gt;That's it, it worked! I suppose I should have been more thorough in my Google searches to try to see how to remove columns from results.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Dec 2014 22:05:15 GMT</pubDate>
    <dc:creator>mplautz</dc:creator>
    <dc:date>2014-12-23T22:05:15Z</dc:date>
    <item>
      <title>How do I show stats where count is greater than 10, but without showing count field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164579#M46729</link>
      <description>&lt;P&gt;I have an example query where I show the &lt;CODE&gt;elapsed&lt;/CODE&gt; time for all log lines where &lt;CODE&gt;detail&lt;/CODE&gt; equals one of three things, and I show the stats of the &lt;CODE&gt;elapsed&lt;/CODE&gt; field:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;normalized_source=http_plugin (detail=/online/public/userIdentify OR detail=/online/successfulLogin OR detail=/online/home) | 
stats avg(elapsed), median(elapsed), p90(elapsed) by detail
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So an issue I run into is it matches both where &lt;CODE&gt;detail&lt;/CODE&gt; equals "successfulLogin" as well as "successfullogin" (with a second lowercase L). The "successfullogin" exists in the logs because of tests done against the production environment, but doesn't reflect useful data. In fact, there are only 2 or 3 logs of the "successfullogin" whereas there are 40,000+ of all the other. I'd like to remove that result so I just show the three, because I am interested in the visualization of this (and I don't want a random 4th result). There are 3 ways I could go about this:&lt;BR /&gt;
 1. Limit the results to three&lt;BR /&gt;
 2. Make the &lt;CODE&gt;detail=&lt;/CODE&gt; case sensitive&lt;BR /&gt;
 3. Show only the results where &lt;CODE&gt;count&lt;/CODE&gt; is greater than, say, 10.&lt;/P&gt;

&lt;P&gt;I don't really know how to do any of these (I'm pretty new to Splunk). I have tried option three with the following query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;normalized_source=http_plugin (detail=/online/userIdentify OR detail=/online/successfulLogin OR detail=/online/home) | stats count, avg(elapsed), median(elapsed), p90(elapsed) by detail | where count &amp;gt; 10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, this includes the count field in the results. This is fine except when I turn this into a bar chart, the count column skews the other values (since it is so much larger). How could I redo that query to omit the &lt;CODE&gt;count&lt;/CODE&gt; field?&lt;/P&gt;

&lt;P&gt;(And for extra credit, how would I redo the first query to do option 1 and 2? I keep trying to modify the query and does not give me the expected results.)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2014 21:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164579#M46729</guid>
      <dc:creator>mplautz</dc:creator>
      <dc:date>2014-12-23T21:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I show stats where count is greater than 10, but without showing count field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164580#M46730</link>
      <description>&lt;P&gt;Hi @mplautz&lt;/P&gt;

&lt;P&gt;Can you try using the fields command in your 2nd search query and see if it works for you?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;normalized_source=http_plugin (detail=/online/userIdentify OR detail=/online/successfulLogin OR detail=/online/home) | stats count, avg(elapsed), median(elapsed), p90(elapsed) by detail | where count &amp;gt; 10 | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Dec 2014 22:00:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164580#M46730</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-12-23T22:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I show stats where count is greater than 10, but without showing count field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164581#M46731</link>
      <description>&lt;P&gt;That's it, it worked! I suppose I should have been more thorough in my Google searches to try to see how to remove columns from results.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2014 22:05:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164581#M46731</guid>
      <dc:creator>mplautz</dc:creator>
      <dc:date>2014-12-23T22:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I show stats where count is greater than 10, but without showing count field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164582#M46732</link>
      <description>&lt;P&gt;I saw you posted this an answer before it was a comment. Now I cannot give you "correct answer" credit.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2014 22:06:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164582#M46732</guid>
      <dc:creator>mplautz</dc:creator>
      <dc:date>2014-12-23T22:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I show stats where count is greater than 10, but without showing count field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164583#M46733</link>
      <description>&lt;P&gt;Just converted it back to an answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; glad it worked!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2014 22:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-show-stats-where-count-is-greater-than-10-but-without/m-p/164583#M46733</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-12-23T22:08:01Z</dc:date>
    </item>
  </channel>
</rss>

