<?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 add a wild card to all the field values at the end of a field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346196#M102554</link>
    <description>&lt;P&gt;worked perfect. Thank you @elliotproebstel&lt;/P&gt;</description>
    <pubDate>Mon, 16 Apr 2018 19:11:50 GMT</pubDate>
    <dc:creator>pavanae</dc:creator>
    <dc:date>2018-04-16T19:11:50Z</dc:date>
    <item>
      <title>How to add a wild card to all the field values at the end of a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346194#M102552</link>
      <description>&lt;P&gt;I have a query as follows &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup hosts.csv | table host | format
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which gives the result as follows &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;( ( host="abc" ) OR ( host="def" ) OR ( host="ghi" ) OR ( host="jkl" ))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, how to modify my current query to get the result as follows &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;( ( host="abc*" ) OR ( host="def*" ) OR ( host="ghi*" ) OR ( host="jkl*" ))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any way that I can add the wildcard to all the host field values either by eval or regex. Please let me know if there is any possibility?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 18:43:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346194#M102552</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2018-04-16T18:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a wild card to all the field values at the end of a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346195#M102553</link>
      <description>&lt;P&gt;Very easy! Just do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup hosts.csv 
| table host 
| eval host=host."*"
| format
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will append a wildcard to the end of the string in each &lt;CODE&gt;host&lt;/CODE&gt; field.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 19:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346195#M102553</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-04-16T19:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a wild card to all the field values at the end of a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346196#M102554</link>
      <description>&lt;P&gt;worked perfect. Thank you @elliotproebstel&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 19:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346196#M102554</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2018-04-16T19:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a wild card to all the field values at the end of a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346197#M102555</link>
      <description>&lt;P&gt;Glad to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 19:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346197#M102555</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-04-16T19:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a wild card to all the field values at the end of a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346198#M102556</link>
      <description>&lt;P&gt;So if you use &lt;BR /&gt;
| eval name1=upper(name1)."*"&lt;BR /&gt;
| search host=name1&lt;/P&gt;

&lt;P&gt;This should work right?&lt;/P&gt;

&lt;P&gt;When I look at the field values- Name is exactly correct but when I use the name1 field it doesnt work. &lt;BR /&gt;
if I swap it out with just the value- it works.. almost like the wildcard doesnt count if its in the field. &lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 21:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-a-wild-card-to-all-the-field-values-at-the-end-of-a/m-p/346198#M102556</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2019-01-02T21:08:49Z</dc:date>
    </item>
  </channel>
</rss>

