<?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 to remove some words from multivalued field for display in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-some-words-from-multivalued-field-for-display/m-p/39910#M9181</link>
    <description>&lt;P&gt;You could add in a where command before &lt;CODE&gt;| top limit=10000 n&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where lower(n)!="a" AND lower(n)!="an" AND lower(n)!="the" | top limit=10000 n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If there are many words to eliminate, then you might want to use lookups instead.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2012 04:38:42 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2012-08-21T04:38:42Z</dc:date>
    <item>
      <title>How to remove some words from multivalued field for display</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-some-words-from-multivalued-field-for-display/m-p/39909#M9180</link>
      <description>&lt;P&gt;I have a field with search terms in the log that I want to break into individual words. But I do not want stop words (like A, AN, THE) etc to show up in the result.&lt;/P&gt;

&lt;P&gt;eg: my log file has &lt;/P&gt;

&lt;P&gt;searchTerm=lost+cat&lt;BR /&gt;
 searchTerm=lost+a+cat&lt;BR /&gt;&lt;BR /&gt;
 searchTerm=lost+the_dog&lt;/P&gt;

&lt;P&gt;And I want to get a list of all the words ever used in the searchTerm field.&lt;BR /&gt;
lost&lt;BR /&gt;
cat&lt;BR /&gt;
dog&lt;/P&gt;

&lt;P&gt;But I do not want "a" , "an", "the" to appear in the list.&lt;/P&gt;

&lt;P&gt;I use makemv delim=" "&lt;/P&gt;

&lt;P&gt;searchTerm | eval n = urldecode(searchTerm) | makemv delim=" " setsv=true n|  top limit=10000 n&lt;/P&gt;

&lt;P&gt;But I get all the words including "a", "the" etc. How do I get to NOT display these stop words.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2012 23:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-some-words-from-multivalued-field-for-display/m-p/39909#M9180</guid>
      <dc:creator>manjushan</dc:creator>
      <dc:date>2012-08-20T23:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove some words from multivalued field for display</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-some-words-from-multivalued-field-for-display/m-p/39910#M9181</link>
      <description>&lt;P&gt;You could add in a where command before &lt;CODE&gt;| top limit=10000 n&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;
Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where lower(n)!="a" AND lower(n)!="an" AND lower(n)!="the" | top limit=10000 n
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If there are many words to eliminate, then you might want to use lookups instead.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2012 04:38:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-some-words-from-multivalued-field-for-display/m-p/39910#M9181</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-08-21T04:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove some words from multivalued field for display</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-some-words-from-multivalued-field-for-display/m-p/39911#M9182</link>
      <description>&lt;P&gt;Thank You , It worked !&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2012 18:13:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-some-words-from-multivalued-field-for-display/m-p/39911#M9182</guid>
      <dc:creator>manjushan</dc:creator>
      <dc:date>2012-08-21T18:13:48Z</dc:date>
    </item>
  </channel>
</rss>

