<?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 use a wildcard in a where clause? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222225#M65341</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Why using a where clause?&lt;BR /&gt;
You could just do:&lt;BR /&gt;
    index=xyz* NOT [search index=xyz* "ORA-00001" source="/logs/*/camel-audit.log"]&lt;/P&gt;

&lt;P&gt;And perhaps even simpler:&lt;BR /&gt;
index=xyz* NOT ("ORA-00001" AND source="/logs/*/camel-audit.log")&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2016 12:54:13 GMT</pubDate>
    <dc:creator>ctaf</dc:creator>
    <dc:date>2016-04-26T12:54:13Z</dc:date>
    <item>
      <title>How to use a wildcard in a where clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222224#M65340</link>
      <description>&lt;P&gt;I am using the search below to shunt "ORA-00001" from a set of log files. This search works fine for just one log file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz* NOT [search index=xyz* "*ORA-00001*" | WHERE source="/logs/sit/camel-audit.log"] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but when I put a wildcard in the where clause, it doesn't work. Could you please help me on how to use wildcard in a where clause?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz* NOT [search index=xyz* "*ORA-00001*" | WHERE source="/logs/*/camel-audit.log"] 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Apr 2016 06:00:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222224#M65340</guid>
      <dc:creator>rndp89</dc:creator>
      <dc:date>2016-04-26T06:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a wildcard in a where clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222225#M65341</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Why using a where clause?&lt;BR /&gt;
You could just do:&lt;BR /&gt;
    index=xyz* NOT [search index=xyz* "ORA-00001" source="/logs/*/camel-audit.log"]&lt;/P&gt;

&lt;P&gt;And perhaps even simpler:&lt;BR /&gt;
index=xyz* NOT ("ORA-00001" AND source="/logs/*/camel-audit.log")&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 12:54:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222225#M65341</guid>
      <dc:creator>ctaf</dc:creator>
      <dc:date>2016-04-26T12:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a wildcard in a where clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222226#M65342</link>
      <description>&lt;P&gt;@ctaf's comment is a good one, but if you insist on using the &lt;CODE&gt;where&lt;/CODE&gt; command you can't use wildcards.  Try &lt;CODE&gt;like&lt;/CODE&gt;, instead.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=xyz* NOT [search index=xyz* "ORA-00001" | WHERE like(source,"/logs/%/camel-audit.log")]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Notice the &lt;CODE&gt;like&lt;/CODE&gt; command uses SQL-style wildcards.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 13:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222226#M65342</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-04-26T13:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a wildcard in a where clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222227#M65343</link>
      <description>&lt;P&gt;thank you .&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 10:35:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222227#M65343</guid>
      <dc:creator>rndp89</dc:creator>
      <dc:date>2016-04-28T10:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a wildcard in a where clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222228#M65344</link>
      <description>&lt;P&gt;thanks! it worked.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 10:36:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222228#M65344</guid>
      <dc:creator>rndp89</dc:creator>
      <dc:date>2016-04-28T10:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a wildcard in a where clause?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222229#M65345</link>
      <description>&lt;P&gt;Please accept the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 11:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-a-wildcard-in-a-where-clause/m-p/222229#M65345</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-04-28T11:40:42Z</dc:date>
    </item>
  </channel>
</rss>

