<?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 can I create a top 5 list of multiple values from one source in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307236#M92145</link>
    <description>&lt;P&gt;I am assuming in your logs you have Rule=“bad cable” and so on format right?&lt;BR /&gt;
If it is then why does your lookup contain 2 columns...&lt;BR /&gt;
Build a lookup that have only one column just like in splunk ...&lt;BR /&gt;
In splunk if you have Field name as &lt;CODE&gt;Rule&lt;/CODE&gt; and value as &lt;CODE&gt;Bad cable&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Then your lookup should have only one column i.e&lt;BR /&gt;
Rule&lt;BR /&gt;
Bad Cable&lt;BR /&gt;
Questionable radio link&lt;BR /&gt;
...&lt;BR /&gt;
And so..&lt;/P&gt;

&lt;P&gt;Keep column name of csv same as field name in splunk &lt;/P&gt;

&lt;P&gt;I hope this helps you!&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 16:15:15 GMT</pubDate>
    <dc:creator>mayurr98</dc:creator>
    <dc:date>2018-01-16T16:15:15Z</dc:date>
    <item>
      <title>how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307231#M92140</link>
      <description>&lt;P&gt;I have an index from a forwarder that looks something like this:&lt;BR /&gt;
"index=indexname DEBUG Rule="Rule One" OR "Rule Two" OR "Rule Three" etc."&lt;BR /&gt;
I'd like to build a summary of all the Rules that come in via the log that is being read by the forwarder. Something like a top 5 summary of Rules that came out. I've tried to parse through a lookup table, but that didn't do what I wanted. Having difficulty with something that should be pretty easy.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 20:15:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307231#M92140</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-01-15T20:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307232#M92141</link>
      <description>&lt;P&gt;You need to define the rule based on which you want to find the top 5 rules. Example, if you want to find out top 5 Rule based on number of events, you can do like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=indexname DEBUG Rule="Rule One" OR Rule="Rule Two" OR Rule="Rule Three"...all rules that you're interested in..
| top 5 Rule
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jan 2018 20:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307232#M92141</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-15T20:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307233#M92142</link>
      <description>&lt;P&gt;okay so I think your question is regarding there are multiple values for a field &lt;CODE&gt;Rule&lt;/CODE&gt; .&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;step1&lt;/STRONG&gt; :so what you can do is, you can create &lt;CODE&gt;mylookup.csv&lt;/CODE&gt; in which you will have column &lt;CODE&gt;Rule&lt;/CODE&gt; and &lt;CODE&gt;values&lt;/CODE&gt; i.e. &lt;CODE&gt;Rule one two three, etc&lt;/CODE&gt; you need to search &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;step 2&lt;/STRONG&gt; :add this lookup table using this doc&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.1/PivotTutorial/AddlookupfilestoSplunk"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.1/PivotTutorial/AddlookupfilestoSplunk&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;step 3&lt;/STRONG&gt; :and the write your search query as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=indexname DEBUG [inputlookup mylookup.csv] | top limit=5 Rule
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which means that your search will actually run as &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=indexname DEBUG Rule="Rule One" OR "Rule Two" OR "Rule Three" etc.." | top limit=5 Rule
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can see this search in &lt;CODE&gt;job&amp;gt;&amp;gt;inspect job&amp;gt;&amp;gt;saerch job propertise&amp;gt;&amp;gt;normalized search&lt;/CODE&gt;&lt;BR /&gt;
Let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 08:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307233#M92142</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T08:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307234#M92143</link>
      <description>&lt;P&gt;Thanks for the help. I did build a lookup table and added it, but still not seeing any results. My lookup looks like this. I thought about quotes around the : &lt;/P&gt;

&lt;P&gt;Rule,Values&lt;BR /&gt;
1,Questionable Radio Link&lt;BR /&gt;
2,Bad Cable&lt;BR /&gt;
3,Data Abuser Warning&lt;BR /&gt;
etc.&lt;BR /&gt;
I inspected the job, but I don't see anything glaring except it's not finding anything. But at least this tells me I was on the right track. I'll keep poking.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 15:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307234#M92143</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-01-16T15:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307235#M92144</link>
      <description>&lt;P&gt;Thanks for the info. A lookup table is what I need, which I had defined, but it wasn't right. However, I still need something else.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 15:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307235#M92144</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-01-16T15:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307236#M92145</link>
      <description>&lt;P&gt;I am assuming in your logs you have Rule=“bad cable” and so on format right?&lt;BR /&gt;
If it is then why does your lookup contain 2 columns...&lt;BR /&gt;
Build a lookup that have only one column just like in splunk ...&lt;BR /&gt;
In splunk if you have Field name as &lt;CODE&gt;Rule&lt;/CODE&gt; and value as &lt;CODE&gt;Bad cable&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Then your lookup should have only one column i.e&lt;BR /&gt;
Rule&lt;BR /&gt;
Bad Cable&lt;BR /&gt;
Questionable radio link&lt;BR /&gt;
...&lt;BR /&gt;
And so..&lt;/P&gt;

&lt;P&gt;Keep column name of csv same as field name in splunk &lt;/P&gt;

&lt;P&gt;I hope this helps you!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 16:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307236#M92145</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T16:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307237#M92146</link>
      <description>&lt;P&gt;Yeah, unfortunately, I'd already tried both of your suggestions before I even opened this question and answer. I thought you were on to something with having 2 columns. Hmmm, I know I'm close.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 16:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307237#M92146</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-01-16T16:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307238#M92147</link>
      <description>&lt;P&gt;This method is 100 percent working . Just that you need to match fields and value properly . &lt;BR /&gt;
Yes even i feel this is the better method try and accept the answer which helped to get the work done ! &lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 16:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307238#M92147</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T16:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307239#M92148</link>
      <description>&lt;P&gt;I will as soon as I can get it to work.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 16:52:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307239#M92148</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-01-16T16:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307240#M92149</link>
      <description>&lt;P&gt;If your lookup has two columns and one of them (column Values) match, exactly, Rule field in your raw data, you can run like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=indexname DEBUG [inputlookup mylookup.csv | table Values | rename Values as Rule] | top limit=5 Rule
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307240#M92149</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-16T17:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307241#M92150</link>
      <description>&lt;P&gt;Yes that is also will do. &lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307241#M92150</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T17:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307242#M92151</link>
      <description>&lt;P&gt;I now, have one column called Rule. There doesn't seem to be a need for two.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:41:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307242#M92151</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-01-16T17:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307243#M92152</link>
      <description>&lt;P&gt;That is great then try and let us know !&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:44:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307243#M92152</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T17:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307244#M92153</link>
      <description>&lt;P&gt;Either way, doesn't work. The only search that does work is with the OR statements. &lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307244#M92153</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-01-16T17:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307245#M92154</link>
      <description>&lt;P&gt;But building a top 5 doesn't work. So what I'm thinking is the lookup table DOES work, but the top 5 for whatever reason, doesn't.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307245#M92154</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-01-16T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307246#M92155</link>
      <description>&lt;P&gt;then try &lt;CODE&gt;|stats count by Rule | sort limit=5 count  desc&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307246#M92155</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T17:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307247#M92156</link>
      <description>&lt;P&gt;OK, wait, I need to back up. The only thing that works is &lt;/P&gt;

&lt;P&gt;"index=aircontrol DEBUG "Questionable Radio Link" OR Rule="Bad Cable" OR Rule="Data Abuser Warning" OR Rule="Data Abuser Critical" OR Rule="AP Down" OR Rule="Low Noise Floor" OR Rule="Low Noise Floor Access Points" OR Rule="High Latency" OR Rule="Warning CPU" OR Rule="High CPU" OR Rule="Warning CPU Access Points" OR Rule="High CPU Access Points" OR Rule="Number of Client &amp;gt;=25" OR Rule="Number of Client &amp;gt;=30" OR Rule="Number of Client &amp;gt;=35" OR Rule="Customer Interface LAN Status = Down"&lt;/P&gt;

&lt;P&gt;When I try "index=aircontrol DEBUG [inputlookup aircontrol.csv]" I get nothing. They're basically the same.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307247#M92156</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-01-16T17:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307248#M92157</link>
      <description>&lt;P&gt;Inspecting the job shows that the remote search seems to be doing what it should:&lt;/P&gt;

&lt;P&gt;litsearch (index=aircontrol DEBUG (Rule="Questionable Radio Link" OR Rule="Bad Cable" OR Rule="Data Abuser Warning" OR Rule="Data Abuser Critical" OR Rule="AP Down" OR Rule="Low Noise Floor" OR Rule="Low Noise Floor Access Points" OR Rule="High Latency" OR Rule="Warning CPU" OR Rule="High CPU" OR Rule="Warning CPU Access Points" OR Rule="High CPU Access Points" OR Rule="Number of Client &amp;gt;=25" OR Rule="Number of Client &amp;gt;=30" OR Rule="Number of Client &amp;gt;=35" OR Rule="Customer Interface LAN Status = Down")) | fields keepcolorder=t "*" "_bkt" "_cd" "_si" "host" "index" "linecount" "source" "sourcetype" "splunk_server" | remotetl nb=300 et=1516035600.000000 lt=1516125059.000000 remove=true max_count=1000 max_prefetch=100 &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307248#M92157</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2020-09-29T17:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307249#M92158</link>
      <description>&lt;P&gt;hey &lt;/P&gt;

&lt;P&gt;see image&lt;BR /&gt;
&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/4152iB9460CF6B043E9F9/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 Jan 2018 18:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307249#M92158</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T18:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: how can I create a top 5 list of multiple values from one source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307250#M92159</link>
      <description>&lt;P&gt;it is working perfectly see image..for this i had configured &lt;CODE&gt;lookup table&lt;/CODE&gt; and &lt;CODE&gt;look definitions&lt;/CODE&gt; as given in this doc&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.1/PivotTutorial/AddlookupfilestoSplunk"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.1/PivotTutorial/AddlookupfilestoSplunk&lt;/A&gt;&lt;BR /&gt;
also at both steps you need to change permissions to &lt;CODE&gt;global&lt;/CODE&gt;.&lt;BR /&gt;
see the query and method is right as I have shown you the proof .Just that you need to debug where you are  going wrong . I have done exactly what you are doing in your environment.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 18:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-can-I-create-a-top-5-list-of-multiple-values-from-one-source/m-p/307250#M92159</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-01-16T18:24:09Z</dc:date>
    </item>
  </channel>
</rss>

