<?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 How to search string in a field ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127473#M34594</link>
    <description>&lt;P&gt;Hello, &lt;BR /&gt;
i have a 2 lists of clients, the 1st one is "All_Client.csv"  which is in a saved like an index and the 2nd is "App_client.csv" which saved as  a lookup table.&lt;BR /&gt;
the both of lists got a fied 'user_name'. the purpose is to get the clients in the 2nd list ( &lt;STRONG&gt;"App_client.csv"&lt;/STRONG&gt; ) who doesn't figure in the 1st list (&lt;STRONG&gt;"All_Client.csv"&lt;/STRONG&gt;).&lt;BR /&gt;
i have a "wondrful" query which does the work for me&lt;BR /&gt;
 &lt;STRONG&gt;| inputlookup tlog.csv | search NOT user_name="WS*" | search NOT END.DATE.PROFILE&amp;lt;20150708 | search NOT [ search index=* source="listingcollab_ajour.csv" | dedup user_name| table user_name ]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;but the problem is when i have some username which does not much 100%. for example whene i have &lt;EM&gt;'Alice ashley'&lt;/EM&gt; in the first list and in the 2nd list have &lt;EM&gt;'Alice ashly'&lt;/EM&gt;, the query return that the field does not much, and even whene the fisrt name and the second name are not in the same order.&lt;BR /&gt;
a help plz. and thank you a lot.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 06:43:44 GMT</pubDate>
    <dc:creator>isedrof</dc:creator>
    <dc:date>2020-09-29T06:43:44Z</dc:date>
    <item>
      <title>How to search string in a field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127473#M34594</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;
i have a 2 lists of clients, the 1st one is "All_Client.csv"  which is in a saved like an index and the 2nd is "App_client.csv" which saved as  a lookup table.&lt;BR /&gt;
the both of lists got a fied 'user_name'. the purpose is to get the clients in the 2nd list ( &lt;STRONG&gt;"App_client.csv"&lt;/STRONG&gt; ) who doesn't figure in the 1st list (&lt;STRONG&gt;"All_Client.csv"&lt;/STRONG&gt;).&lt;BR /&gt;
i have a "wondrful" query which does the work for me&lt;BR /&gt;
 &lt;STRONG&gt;| inputlookup tlog.csv | search NOT user_name="WS*" | search NOT END.DATE.PROFILE&amp;lt;20150708 | search NOT [ search index=* source="listingcollab_ajour.csv" | dedup user_name| table user_name ]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;but the problem is when i have some username which does not much 100%. for example whene i have &lt;EM&gt;'Alice ashley'&lt;/EM&gt; in the first list and in the 2nd list have &lt;EM&gt;'Alice ashly'&lt;/EM&gt;, the query return that the field does not much, and even whene the fisrt name and the second name are not in the same order.&lt;BR /&gt;
a help plz. and thank you a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127473#M34594</guid>
      <dc:creator>isedrof</dc:creator>
      <dc:date>2020-09-29T06:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to search string in a field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127474#M34595</link>
      <description>&lt;P&gt;Are you asking for a "fuzzy" match or a way to check if all words in a field are the same, regardless of order (or both)?  We can work on the last one but the first one is unlikely to have a good answer.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2015 15:35:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127474#M34595</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-17T15:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to search string in a field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127475#M34596</link>
      <description>&lt;P&gt;You are probably looking for &lt;A href="https://en.wikipedia.org/wiki/Soundex"&gt;Soundex&lt;/A&gt; or some variant thereof.  I do not believe there is anything like this in Splunk. &lt;/P&gt;

&lt;P&gt;I am sure they would take the suggestion to add such a feature seriously if you made it.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 19:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127475#M34596</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-07-18T19:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to search string in a field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127476#M34597</link>
      <description>&lt;P&gt;Hi Isedrof,&lt;/P&gt;

&lt;P&gt;I don't want to be mean nor rude; but like some famous answers member once said: &lt;CODE&gt;You need to learn to walk, before you run&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;@rich7177 and @woodcok pointed out some information. &lt;/P&gt;

&lt;P&gt;I think it can be done, but it is not worth the effort! Because you would have to get each single value for the &lt;CODE&gt;user_name&lt;/CODE&gt; normalize them and compare each single character one by one. But as I said, this will take some effort and if I recall the trouble you had just to get this search working ...... Well, see &lt;CODE&gt;You need to learn to walk, before you run&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;My suggestion: clean up your data! Have the &lt;CODE&gt;user_name&lt;/CODE&gt; in all sources to be the same and your done.&lt;BR /&gt;
Most of my costumers check their data before it will be ingested into Splunk and if the data is not in a useful format (any key=value pair will work fine) they simply reject it. This may be harsh, but it will pay off in the end!&lt;/P&gt;

&lt;P&gt;cheer, MuS&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2015 22:47:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127476#M34597</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-07-18T22:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to search string in a field ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127477#M34598</link>
      <description>&lt;P&gt;First thank you for your answer,&lt;BR /&gt;
What i want to say is that i'm working on several hundreds of users , and i'm not responsible of those extraction. so i can not normalize the "user_name" of all users, So i was thinking on a way to optimize that query.. i know that trying to have a result at the first time was not easy and thanks to u for this.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2015 09:10:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-string-in-a-field/m-p/127477#M34598</guid>
      <dc:creator>isedrof</dc:creator>
      <dc:date>2015-07-22T09:10:48Z</dc:date>
    </item>
  </channel>
</rss>

