<?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 Search data by result count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-data-by-result-count/m-p/672134#M230272</link>
    <description>&lt;P&gt;I have a search that returns a list of users and the country logins have occurred from grouped by user.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=o365 UserloginFailed* 
| iplocation ClientIP
| search Country!=Australia
| stats values(Country) by user&lt;/LI-CODE&gt;&lt;P&gt;So if a user logins from one Country, then a get a single record for the user (user, Country).&amp;nbsp;&lt;BR /&gt;If a user logins in from multiple locations, I get the user name in one column and a list of the source locations in the values(County) column.&lt;/P&gt;&lt;P&gt;I would like to construct the search so that only see those users who have logins from multiple Countries.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2023 04:10:16 GMT</pubDate>
    <dc:creator>balcv</dc:creator>
    <dc:date>2023-12-18T04:10:16Z</dc:date>
    <item>
      <title>Search data by result count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-data-by-result-count/m-p/672134#M230272</link>
      <description>&lt;P&gt;I have a search that returns a list of users and the country logins have occurred from grouped by user.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=o365 UserloginFailed* 
| iplocation ClientIP
| search Country!=Australia
| stats values(Country) by user&lt;/LI-CODE&gt;&lt;P&gt;So if a user logins from one Country, then a get a single record for the user (user, Country).&amp;nbsp;&lt;BR /&gt;If a user logins in from multiple locations, I get the user name in one column and a list of the source locations in the values(County) column.&lt;/P&gt;&lt;P&gt;I would like to construct the search so that only see those users who have logins from multiple Countries.&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 04:10:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-data-by-result-count/m-p/672134#M230272</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2023-12-18T04:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search data by result count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-data-by-result-count/m-p/672135#M230273</link>
      <description>&lt;P&gt;I think this SPL will do what you are looking for.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=o365 UserloginFailed* 
| iplocation ClientIP
| search Country!=Australia
| stats values(Country) as Country by user
| where mvcount(Country)&amp;gt;1&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 18 Dec 2023 04:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-data-by-result-count/m-p/672135#M230273</guid>
      <dc:creator>dtburrows3</dc:creator>
      <dc:date>2023-12-18T04:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search data by result count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-data-by-result-count/m-p/672136#M230274</link>
      <description>&lt;P&gt;Perfect.&amp;nbsp; Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263242"&gt;@dtburrows3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 04:42:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-data-by-result-count/m-p/672136#M230274</guid>
      <dc:creator>balcv</dc:creator>
      <dc:date>2023-12-18T04:42:44Z</dc:date>
    </item>
  </channel>
</rss>

