<?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: Splunk search in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-search/m-p/538738#M36859</link>
    <description>&lt;P&gt;If string in ad location is a substring of logic location string, you may try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|where !match(login_location,ad_location)&lt;/LI-CODE&gt;&lt;P&gt;Here is a run anywhere example. Remove the where condition to see the data and it's comparison&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults|eval ad_location="Almaty Almaty ABC KZ"|makemv ad_location| mvexpand ad_location
| appendcols [| makeresults |eval login_location="Almaty city,Almaty,XYZ,KZ"|makemv login_location delim=","|mvexpand login_location]
|where !match(login_location,ad_location)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 11:05:37 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2021-02-05T11:05:37Z</dc:date>
    <item>
      <title>Splunk search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-search/m-p/538725#M36858</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have a dashboard in which there are event date, event title, AD location, Logon location and IP address. I have visualized all the datas into my dashboard.&lt;/P&gt;&lt;P&gt;I my splunk query&amp;nbsp; i need to ignore if AD and Logon location are same. Need to ignore those events getting displayed in dashboard.&lt;/P&gt;&lt;P&gt;Here is the eg:&amp;nbsp;&lt;/P&gt;&lt;P&gt;AD location : Almaty,KZ Logon location: Almaty city, Almaty, KZ.&amp;nbsp; In this case I need to match any of these pair values. Like KZ or Almaty if anything is same. Need to ignore those in my dashboard.&lt;/P&gt;&lt;P&gt;I tried using Like and != operator coudn't able to get the search properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Required a quick help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 09:54:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-search/m-p/538725#M36858</guid>
      <dc:creator>SabariRajanT</dc:creator>
      <dc:date>2021-02-05T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-search/m-p/538738#M36859</link>
      <description>&lt;P&gt;If string in ad location is a substring of logic location string, you may try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|where !match(login_location,ad_location)&lt;/LI-CODE&gt;&lt;P&gt;Here is a run anywhere example. Remove the where condition to see the data and it's comparison&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults|eval ad_location="Almaty Almaty ABC KZ"|makemv ad_location| mvexpand ad_location
| appendcols [| makeresults |eval login_location="Almaty city,Almaty,XYZ,KZ"|makemv login_location delim=","|mvexpand login_location]
|where !match(login_location,ad_location)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 11:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-search/m-p/538738#M36859</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2021-02-05T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-search/m-p/538741#M36860</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136781"&gt;@renjith_nair&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for ur response..!!&lt;/P&gt;&lt;P&gt;I prefer to use this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;|where !match(login_location,ad_location)&lt;/PRE&gt;&lt;P&gt;But this is not ignoring the like search.&lt;/P&gt;&lt;P&gt;Eg: &lt;STRONG&gt;Logon location:&amp;nbsp;&lt;/STRONG&gt;Almaty, Almaty City, KZ and AD Location: Almaty, KZ. In this case I want to use a like condition to see atleast KZ matches. So need to ignore these results.&lt;/P&gt;&lt;P&gt;Please suggest if any like condition matches in 2fields that should be ignored.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 11:17:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-search/m-p/538741#M36860</guid>
      <dc:creator>SabariRajanT</dc:creator>
      <dc:date>2021-02-05T11:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-search/m-p/538919#M36862</link>
      <description>&lt;P&gt;Didn't quite get that&lt;/P&gt;&lt;P&gt;Can you make changes to the below dummy search with your inputs and expected output ?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults|eval ad_location="Almaty Almaty ABC KZ"|makemv ad_location| mvexpand ad_location
| appendcols [| makeresults |eval login_location="Almaty city,Almaty,XYZ,KZ"|makemv login_location delim=","|mvexpand login_location]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 06:45:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-search/m-p/538919#M36862</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2021-02-08T06:45:57Z</dc:date>
    </item>
  </channel>
</rss>

