<?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: Lookup Table search wildcards in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-search-wildcards/m-p/455061#M128730</link>
    <description>&lt;P&gt;How about using search(without AND operator) instead of where?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search service="*"  resource="*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Aug 2019 04:40:16 GMT</pubDate>
    <dc:creator>nareshinsvu</dc:creator>
    <dc:date>2019-08-21T04:40:16Z</dc:date>
    <item>
      <title>Lookup Table search wildcards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-search-wildcards/m-p/455060#M128729</link>
      <description>&lt;P&gt;I have created a lookup table, service.csv &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;host,service,resource&lt;BR /&gt;
"host1","fdl","all"&lt;BR /&gt;
"host2","finance","db"&lt;BR /&gt;
"host3","campus","web"&lt;BR /&gt;
"host4","finance","db"&lt;BR /&gt;
"host5","finance","db"&lt;BR /&gt;
"host6","finance","app"&lt;BR /&gt;
"host7","finance","app"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I have created a dashboard with 2 inputs, service and resource, which are both dropdown lists with various options in each, but also with an ALL option with a value of *.&lt;/P&gt;

&lt;P&gt;The search linked to this dashboard is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="*" source="*secure" ("keyboard")
| lookup "service.csv" host OUTPUT host,service,resource 
| where service="$service$" AND resource="$resource$"
| table service,resource,host,source,_raw | sort -_raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I select a specific service and a specific resource from the dropdown lists, the search returns the desired results from both the lookup table and the data source.  However, when I select the ALL (*) option for either or both lists, it get no results returned.&lt;/P&gt;

&lt;P&gt;The search looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="*" source="*secure" ("keyboard")
| lookup "service.csv" host OUTPUT host,service,resource 
| where service="*" AND resource="*"
| table service,resource,host,source,_raw | sort -_raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to resolve this so that I get return the desired results.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 04:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-search-wildcards/m-p/455060#M128729</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2019-08-21T04:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Table search wildcards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-search-wildcards/m-p/455061#M128730</link>
      <description>&lt;P&gt;How about using search(without AND operator) instead of where?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search service="*"  resource="*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Aug 2019 04:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-search-wildcards/m-p/455061#M128730</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2019-08-21T04:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup Table search wildcards</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-search-wildcards/m-p/455062#M128731</link>
      <description>&lt;P&gt;Sooooo simple!!.   Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 04:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-Table-search-wildcards/m-p/455062#M128731</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2019-08-21T04:43:53Z</dc:date>
    </item>
  </channel>
</rss>

