<?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 display all the values for my Field ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60749#M180136</link>
    <description>&lt;P&gt;When you say "one event has max 100 questions," do you mean that each event can have more than one question? Is Question a multi-valued field?&lt;/P&gt;

&lt;P&gt;Assuming that Question is &lt;EM&gt;not&lt;/EM&gt; a multi-valued field, try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;myseach | stats count by Questions | sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you a list of all Questions, whether there are 50 or 500...&lt;BR /&gt;&lt;BR /&gt;
You might want to take a look at some other possible stats functions, such as distinct_count, &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Sep 2012 20:47:16 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-09-15T20:47:16Z</dc:date>
    <item>
      <title>How  can i display all the values for my Field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60747#M180134</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;

&lt;P&gt;I have created a Field "Questions" in my Splunk Query.When i am using like this..&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;myseach | top Questions *&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Its not displaying all the Questions in my event.ie one event has max 100 questions..But all of them were not displayed using the top Command ..&lt;/P&gt;

&lt;P&gt;Please help..&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2012 14:55:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60747#M180134</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-09-15T14:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: How  can i display all the values for my Field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60748#M180135</link>
      <description>&lt;P&gt;The default for the top command is 10 values.    You can do either of the following to get the top 100.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | top 100 Questions   or   ... | top limit=100 Questions
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/top"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/top&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2012 16:32:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60748#M180135</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-09-15T16:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How  can i display all the values for my Field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60749#M180136</link>
      <description>&lt;P&gt;When you say "one event has max 100 questions," do you mean that each event can have more than one question? Is Question a multi-valued field?&lt;/P&gt;

&lt;P&gt;Assuming that Question is &lt;EM&gt;not&lt;/EM&gt; a multi-valued field, try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;myseach | stats count by Questions | sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you a list of all Questions, whether there are 50 or 500...&lt;BR /&gt;&lt;BR /&gt;
You might want to take a look at some other possible stats functions, such as distinct_count, &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2012 20:47:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60749#M180136</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-15T20:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: How  can i display all the values for my Field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60750#M180137</link>
      <description>&lt;P&gt;not exactly this i need..actually in my event i had this &lt;QUESTION&gt;abc....etc&lt;/QUESTION&gt; tag more then 100 times for each event.&lt;BR /&gt;
When i created the rex expression like this..&lt;/P&gt;

&lt;P&gt;mysearch | rex field=_raw "&lt;QUESTION&gt;(?&lt;QUESTION&gt;[^&amp;lt;]*)&amp;lt;" | top Question&lt;/QUESTION&gt;&lt;/QUESTION&gt;&lt;/P&gt;

&lt;P&gt;i dnt think all the values are displayed for Question Field..even i use the limit followed by top command..&lt;/P&gt;

&lt;P&gt;is there any option like MAX_LENGTH with top to display all the values of Question Tag..&lt;/P&gt;</description>
      <pubDate>Sun, 16 Sep 2012 06:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60750#M180137</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-09-16T06:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: How  can i display all the values for my Field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60751#M180138</link>
      <description>&lt;P&gt;question is multivalued field only..&lt;/P&gt;</description>
      <pubDate>Sun, 16 Sep 2012 07:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60751#M180138</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-09-16T07:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: How  can i display all the values for my Field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60752#M180139</link>
      <description>&lt;P&gt;Okay, since Question is a &lt;STRONG&gt;multi-valued&lt;/STRONG&gt; field, we need a way to "break out" all the values for question. The &lt;CODE&gt;mvexpand&lt;/CODE&gt; command will do that. Also, by default the &lt;CODE&gt;rex&lt;/CODE&gt; command will only extract the first occurrence of the regular expression unless you specify max_match.&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mysearch 
| rex field=_raw max_match=150 "&amp;lt;question&amp;gt;(?&amp;lt;question&amp;gt;.*?)\&amp;lt;" 
| mvexpand question
| top question
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Sep 2012 07:52:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60752#M180139</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-17T07:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: How  can i display all the values for my Field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60753#M180140</link>
      <description>&lt;P&gt;| top limit=0 Questions should do your work.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 04:35:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-display-all-the-values-for-my-Field/m-p/60753#M180140</guid>
      <dc:creator>thirumalreddyb</dc:creator>
      <dc:date>2017-01-31T04:35:25Z</dc:date>
    </item>
  </channel>
</rss>

