<?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: Can I use catch alls (wildcards) in Splunk lookups if an exact match is not found? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612247#M212871</link>
    <description>&lt;P&gt;Thanks Yuanliu.&lt;/P&gt;&lt;P&gt;Can the IF function be nested in the event we have multiple conditions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 11:05:56 GMT</pubDate>
    <dc:creator>mark_cet</dc:creator>
    <dc:date>2022-09-07T11:05:56Z</dc:date>
    <item>
      <title>Can I use catch alls (wildcards) in Splunk lookups if an exact match is not found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612116#M212825</link>
      <description>&lt;P&gt;We have alert events coming into Splunk &amp;amp; Splunk ITSI that we open Service Now incidents for, but depending on the event contents the incident will need to be routed to different teams.&lt;/P&gt;&lt;P&gt;An example scenario is, if the alert comes from server A then set the Service Now assignment group to team A, alerts from all other servers should go to team B.&lt;/P&gt;&lt;P&gt;We will have many of these scenarios in our environment, what is the best way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 15:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612116#M212825</guid>
      <dc:creator>mark_cet</dc:creator>
      <dc:date>2022-09-06T15:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use catch alls (wildcards) in Splunk lookups if an exact match is not found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612243#M212869</link>
      <description>&lt;P&gt;I think you are looking for the&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/ConditionalFunctions#if.28X.2CY.2CZ.29" target="_blank" rel="noopener"&gt;if&lt;/A&gt; function, not a wildcard solution.&lt;/P&gt;&lt;P&gt;Suppose you have a lookup table ServiceNowAssign like the following&lt;/P&gt;&lt;TABLE border="1" width="34.89583333333333%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="17.11788598612362%"&gt;Server&lt;/TD&gt;&lt;TD width="22.979484283832107%"&gt;Team&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="17.11788598612362%"&gt;A&lt;/TD&gt;&lt;TD width="22.979484283832107%"&gt;Team A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set up a search like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(your alert condition)
| lookup ServiceNowAssign Server
| eval assignTo = if(isnull(Team), "Team B", Team)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Sep 2022 10:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612243#M212869</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-09-07T10:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use catch alls (wildcards) in Splunk lookups if an exact match is not found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612247#M212871</link>
      <description>&lt;P&gt;Thanks Yuanliu.&lt;/P&gt;&lt;P&gt;Can the IF function be nested in the event we have multiple conditions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 11:05:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612247#M212871</guid>
      <dc:creator>mark_cet</dc:creator>
      <dc:date>2022-09-07T11:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use catch alls (wildcards) in Splunk lookups if an exact match is not found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612344#M212900</link>
      <description>&lt;P&gt;Ah, for that, you want to use&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/ConditionalFunctions#case.28X.2C.22Y.22.2C....29" target="_blank" rel="noopener"&gt;case&lt;/A&gt;&amp;nbsp;function instead of nesting if()s. (Yes, you can nest to your heart's content.)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 02:31:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612344#M212900</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-09-08T02:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use catch alls (wildcards) in Splunk lookups if an exact match is not found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612425#M212932</link>
      <description>&lt;P&gt;Thanks again yuanliu!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 13:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-I-use-catch-alls-wildcards-in-Splunk-lookups-if-an-exact/m-p/612425#M212932</guid>
      <dc:creator>mark_cet</dc:creator>
      <dc:date>2022-09-08T13:49:33Z</dc:date>
    </item>
  </channel>
</rss>

