<?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 Using wildcards in a search string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-wildcards-in-a-search-string/m-p/130955#M35715</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Can someone please explain how I use a wildcard character in the middle of a search string?  For example, if I want find all gmail addresses that start with the letter 'a', I thought I could search for emailaddress="a*@gmail.com, however this returns all records.  I guess I have to use a regex but my knowledge hasn't reached that level yet so I am struggling with this one.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;AB&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2014 22:28:39 GMT</pubDate>
    <dc:creator>andybeh</dc:creator>
    <dc:date>2014-07-03T22:28:39Z</dc:date>
    <item>
      <title>Using wildcards in a search string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-wildcards-in-a-search-string/m-p/130955#M35715</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Can someone please explain how I use a wildcard character in the middle of a search string?  For example, if I want find all gmail addresses that start with the letter 'a', I thought I could search for emailaddress="a*@gmail.com, however this returns all records.  I guess I have to use a regex but my knowledge hasn't reached that level yet so I am struggling with this one.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;AB&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2014 22:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-wildcards-in-a-search-string/m-p/130955#M35715</guid>
      <dc:creator>andybeh</dc:creator>
      <dc:date>2014-07-03T22:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using wildcards in a search string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-wildcards-in-a-search-string/m-p/130956#M35716</link>
      <description>&lt;P&gt;Hi AB,&lt;/P&gt;

&lt;P&gt;Strange, I just tried you're search query emailaddress="a*@gmail.com" and it worked to filter emails that starts with an a, wildcards should work like you expected.&lt;/P&gt;

&lt;P&gt;Alternatively use the regex command to filter you're results, for you're case just append this command to you're search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| regex emailaddress="^a.*@gmail.com"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will find all emails that starts with an "a" and ends with "@gmail.com"&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2014 00:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-wildcards-in-a-search-string/m-p/130956#M35716</guid>
      <dc:creator>laithmurad</dc:creator>
      <dc:date>2014-07-04T00:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using wildcards in a search string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-wildcards-in-a-search-string/m-p/130957#M35717</link>
      <description>&lt;P&gt;other than the fact that you are missing a closing double quote in your example. That will work fine. &lt;BR /&gt;
Is that a typo?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2014 00:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-wildcards-in-a-search-string/m-p/130957#M35717</guid>
      <dc:creator>rsennett_splunk</dc:creator>
      <dc:date>2014-07-04T00:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using wildcards in a search string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-wildcards-in-a-search-string/m-p/130958#M35718</link>
      <description>&lt;P&gt;Is not working for me either. &lt;/P&gt;

&lt;P&gt;I tried &lt;BR /&gt;
index=my_index | regex my_field="^my*.value.com"&lt;/P&gt;

&lt;P&gt;and it is not finding anything even I &lt;/P&gt;

&lt;P&gt;Where it should match &lt;BR /&gt;
my1.value.com &lt;BR /&gt;
my2.value.com &lt;BR /&gt;
my100.value.com&lt;BR /&gt;
etc.... &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:06:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-wildcards-in-a-search-string/m-p/130958#M35718</guid>
      <dc:creator>gopala</dc:creator>
      <dc:date>2020-09-29T09:06:23Z</dc:date>
    </item>
  </channel>
</rss>

