<?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 XQL Query in which I can know by country how many logins exist. in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-in-which-i-can-know-by-country-how-many-logins-exist/m-p/582954#M6475</link>
    <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I am starting this conversation to request your support to create an XQL query for Cortex XDR in which I can know by country how many logins exist.&lt;/P&gt;
&lt;P&gt;If you help me with the geolocation dashboard it would be great.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;from the USA there are 56 logins&lt;BR /&gt;Russia 15 logins.&lt;/P&gt;
&lt;P&gt;Is it possible to do this with the XDR information?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 16:40:20 GMT</pubDate>
    <dc:creator>Rolando_Pena</dc:creator>
    <dc:date>2024-04-08T16:40:20Z</dc:date>
    <item>
      <title>XQL Query in which I can know by country how many logins exist.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-in-which-i-can-know-by-country-how-many-logins-exist/m-p/582954#M6475</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;
&lt;P&gt;I am starting this conversation to request your support to create an XQL query for Cortex XDR in which I can know by country how many logins exist.&lt;/P&gt;
&lt;P&gt;If you help me with the geolocation dashboard it would be great.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;from the USA there are 56 logins&lt;BR /&gt;Russia 15 logins.&lt;/P&gt;
&lt;P&gt;Is it possible to do this with the XDR information?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 16:40:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-in-which-i-can-know-by-country-how-many-logins-exist/m-p/582954#M6475</guid>
      <dc:creator>Rolando_Pena</dc:creator>
      <dc:date>2024-04-08T16:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query in which I can know by country how many logins exist.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-in-which-i-can-know-by-country-how-many-logins-exist/m-p/583100#M6479</link>
      <description>&lt;P&gt;Hello Rolando_Pena,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following query provides a geo map of network activity in XDR:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;preset = network_story &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| iploc action_remote_ip loc_country&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| filter loc_country != null&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| union (preset = network_story| iploc action_local_ip loc_country | filter loc_country != null) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| comp count(event_id) as counter by loc_country&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| view graph type = map xaxis = loc_country yaxis = counter default_limit = `false` seriestitle("counter","Volume")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jtalton_0-1712691660082.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/58908iF07E9341C61BEE71/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="jtalton_0-1712691660082.png" alt="jtalton_0-1712691660082.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;To create a query for successful logins by geolocation its best to include the ingestion of authentication logs which will create a dataset to query, example okta_data. &lt;BR /&gt;&lt;BR /&gt;If you are ingesting authentication logs, which we highly recommend to enrich XDR data, you may use this query which utilizes the preset = auth_logs which is comprised of authentication logs (Okta, Ping, etc) and is a subset of xdr_data dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;dataset = auth_logs &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| iploc action_remote_ip loc_country &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| filter auth_outcome = "SUCCESS" and loc_country != null//Also auth_outcome_reason to specify a description example OKTA SSO failed&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| union (preset = network_story| iploc action_local_ip loc_country as ConnectionCountry | filter ConnectionCountry != null) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| comp count(event_id) as Countby by ConnectionCountry&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| sort desc Countby &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;|&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;view graph type = pie subtype = full xaxis = ConnectionCountry yaxis = Countby&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jtalton_1-1712691759868.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/58909iE32B39169A22F981/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="jtalton_1-1712691759868.png" alt="jtalton_1-1712691759868.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Note, a dataset is comprised of both raw EDR events reported by the Cortex XDR agent, and of logs from different sources such as third-party logs. To help you investigate events more efficiently, Cortex XDR also stitches these logs and events together into common schemas called stories. These stories are available using the Cortex XDR Presets.&lt;BR /&gt;&lt;BR /&gt;Reference&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/Datasets-and-Presets" target="_blank" rel="noopener"&gt;Datasets and Presets • Cortex XDR XQL Language Reference • Reader • Palo Alto Networks documentation portal&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/cortex-xdr-how-to-videos/cortex-xdr-basic-xql-crash-course/ta-p/544056" target="_blank" rel="noopener"&gt;LIVEcommunity - Cortex XDR Basic XQL Crash Course - LIVEcommunity - 544056 (paloaltonetworks.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;If you found this answer helpful, please select Accept as Solution.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 19:47:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-in-which-i-can-know-by-country-how-many-logins-exist/m-p/583100#M6479</guid>
      <dc:creator>jtalton</dc:creator>
      <dc:date>2024-04-09T19:47:16Z</dc:date>
    </item>
  </channel>
</rss>

