<?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: Why would a basic substring search fail? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137706#M37760</link>
    <description>&lt;P&gt;Can you try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc "toto3"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 13 Feb 2015 18:13:36 GMT</pubDate>
    <dc:creator>sanjay_shrestha</dc:creator>
    <dc:date>2015-02-13T18:13:36Z</dc:date>
    <item>
      <title>Why would a basic substring search fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137705#M37759</link>
      <description>&lt;P&gt;These two searches don't return the same thing, and I think they should. The first one returns nothing, the second one returns some events.&lt;BR /&gt;&lt;BR /&gt;
Search1:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc toto3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Search2:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc _raw=*toto3*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In other words, clearly I have some events which contain toto3. Search2 proves it, but they are not returned by search1 when I would expect them to be. Does anybody know how this can be possible?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 17:57:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137705#M37759</guid>
      <dc:creator>manus</dc:creator>
      <dc:date>2015-02-13T17:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why would a basic substring search fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137706#M37760</link>
      <description>&lt;P&gt;Can you try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc "toto3"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Feb 2015 18:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137706#M37760</guid>
      <dc:creator>sanjay_shrestha</dc:creator>
      <dc:date>2015-02-13T18:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why would a basic substring search fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137707#M37761</link>
      <description>&lt;P&gt;That doesn't return anything, like search 1.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 18:16:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137707#M37761</guid>
      <dc:creator>manus</dc:creator>
      <dc:date>2015-02-13T18:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why would a basic substring search fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137708#M37762</link>
      <description>&lt;P&gt;yes that's returns some events too. Like Search 2 does.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 18:16:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137708#M37762</guid>
      <dc:creator>manus</dc:creator>
      <dc:date>2015-02-13T18:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why would a basic substring search fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137709#M37763</link>
      <description>&lt;P&gt;I think toto3 is not a complete word. So you can try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=abc "*toto3*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Feb 2015 18:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137709#M37763</guid>
      <dc:creator>sanjay_shrestha</dc:creator>
      <dc:date>2015-02-13T18:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why would a basic substring search fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137710#M37764</link>
      <description>&lt;P&gt;yes it looks like it does that, indeed, but it's not supposed to that.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 18:25:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137710#M37764</guid>
      <dc:creator>manus</dc:creator>
      <dc:date>2015-02-13T18:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why would a basic substring search fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137711#M37765</link>
      <description>&lt;P&gt;When toto3 was used; splunk looks for single word toto3.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 18:25:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137711#M37765</guid>
      <dc:creator>sanjay_shrestha</dc:creator>
      <dc:date>2015-02-13T18:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why would a basic substring search fail?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137712#M37766</link>
      <description>&lt;P&gt;A search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc toto3 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;does not perform a substring search.  It performs a search for a word (technically a segment) that is equal to "toto3", as in &lt;CODE&gt;toto3 is in my event&lt;/CODE&gt;.  To perform a substring search in Splunk, you use the wildcards like your second search or like what @sanjay.shrestha posted:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc *toto3*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This finds toto3 when it is inside a segment but does not make up the complete segment, like &lt;CODE&gt;toto3isin my event&lt;/CODE&gt;.  &lt;/P&gt;

&lt;P&gt;So the answer to your question is that the substring search is not failing.  &lt;CODE&gt;index=abc toto3&lt;/CODE&gt; is not a substring search, but &lt;CODE&gt;index=abc *toto3*&lt;/CODE&gt; is.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 19:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-would-a-basic-substring-search-fail/m-p/137712#M37766</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2015-02-13T19:25:24Z</dc:date>
    </item>
  </channel>
</rss>

