<?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 generate a search that will only display results where a field contains some non-alphanumeric characters? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-only-display-results-where-a/m-p/293107#M88460</link>
    <description>&lt;P&gt;Try like this. First two lines are to generate sample data. You need to replace that with your search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval Product="Dog Collar#18 inch Dog Collar#20-inch Dog Collar#Ƨhock collar" | table Product | makemv Product delim="#" | mvexpand Product 
| regex Product!="^[A-z\s0-9]+$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will keep events which have Product with any non-alphanumeric character.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2017 21:27:10 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-03-23T21:27:10Z</dc:date>
    <item>
      <title>How to generate a search that will only display results where a field contains some non-alphanumeric characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-only-display-results-where-a/m-p/293106#M88459</link>
      <description>&lt;P&gt;A field is named product.  I want to produce a list of products in my source, which are &lt;STRONG&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/STRONG&gt; made up of &lt;STRONG&gt;&lt;EM&gt;only&lt;/EM&gt;&lt;/STRONG&gt; english alphanumeric characters (any length).&lt;BR /&gt;
I.e. Products:&lt;BR /&gt;
Dog Collar&lt;BR /&gt;
18 inch Dog Collar&lt;BR /&gt;
20-inch Dog Collar&lt;BR /&gt;
Ƨhock collar&lt;/P&gt;

&lt;P&gt;would yield only:&lt;BR /&gt;
20-inch Dog Collar&lt;BR /&gt;
Ƨhock collar&lt;/P&gt;

&lt;P&gt;(Because of the latin character and the hyphen.)&lt;/P&gt;

&lt;P&gt;I've seen plenty of uses of sed to remove/replace the non-alphanumerics, but I don't want to remove, just get a list of the outliers.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 20:52:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-only-display-results-where-a/m-p/293106#M88459</guid>
      <dc:creator>drinkingjimmy</dc:creator>
      <dc:date>2017-03-23T20:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search that will only display results where a field contains some non-alphanumeric characters?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-only-display-results-where-a/m-p/293107#M88460</link>
      <description>&lt;P&gt;Try like this. First two lines are to generate sample data. You need to replace that with your search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval Product="Dog Collar#18 inch Dog Collar#20-inch Dog Collar#Ƨhock collar" | table Product | makemv Product delim="#" | mvexpand Product 
| regex Product!="^[A-z\s0-9]+$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will keep events which have Product with any non-alphanumeric character.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 21:27:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-that-will-only-display-results-where-a/m-p/293107#M88460</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-23T21:27:10Z</dc:date>
    </item>
  </channel>
</rss>

