<?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: XQL Query: Finding Location of Public IP based on iploc command. in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-finding-location-of-public-ip-based-on-iploc-command/m-p/533394#M3778</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/163390"&gt;@KanwarSingh01&lt;/a&gt;&amp;nbsp;the fields &lt;STRONG&gt;loc_asn&lt;/STRONG&gt; and &lt;STRONG&gt;loc_asn_org&lt;/STRONG&gt; are missing in line 5 where the iploc stage command is being innvoked. Put it in there and you shall have the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbarmanroy_0-1678154924168.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48486iB104FE22584B5A76/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="bbarmanroy_0-1678154924168.png" alt="bbarmanroy_0-1678154924168.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 02:09:28 GMT</pubDate>
    <dc:creator>bbarmanroy</dc:creator>
    <dc:date>2023-03-07T02:09:28Z</dc:date>
    <item>
      <title>XQL Query: Finding Location of Public IP based on iploc command.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-finding-location-of-public-ip-based-on-iploc-command/m-p/533390#M3777</link>
      <description>&lt;P&gt;We are trying to find out ASN number, Organization&amp;nbsp;Name, Location, City, Country for public IPs. Below is our query just in case:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: The query which we ran is applied on interface which are receiving public facing IPs. We filtered that part of the query.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;config case_sensitive = false 
| dataset = panw_ngfw_threat_raw 
| fields  rule_matched as PA_Rule_Name, severity, direction_of_attack, threat_category, threat_id, threat_name, action, inbound_if as Inbound_Interface, from_zone, source_ip, source_port, outbound_if as Outbound_Interface,to_zone, dest_ip, dest_port, app, tunnel, tunneled_app, log_source_name
| comp Count(threat_name) as Counter by source_ip, dest_ip, dest_port, severity, threat_category, threat_name
| iploc  source_ip loc_city, loc_region, loc_country, loc_continent, loc_latlon, loc_timezone 
| comp Count(loc_city) as Counter by loc_city, loc_continent, loc_country, loc_region 
| sort desc Counter&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, the challenge we have is that the documentation of iploc command states that it has a column name of&amp;nbsp;&lt;SPAN&gt;LOC_ASN_ORG,&amp;nbsp;LOC_ASN but we are not able to see that: See the error below:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Documentation link:&amp;nbsp;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/Iploc" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-XQL-Language-Reference/Iploc&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KanwarSingh01_0-1678149273362.png" style="width: 784px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48485iFE07BF3A77B92CA8/image-dimensions/784x112/is-moderation-mode/true?v=v2" width="784" height="112" role="button" title="KanwarSingh01_0-1678149273362.png" alt="KanwarSingh01_0-1678149273362.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions or ideas? Is it a XDR 3.6 console thing? Might be I am not understanding things right...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 00:38:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-finding-location-of-public-ip-based-on-iploc-command/m-p/533390#M3777</guid>
      <dc:creator>KanwarSingh01</dc:creator>
      <dc:date>2023-03-07T00:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query: Finding Location of Public IP based on iploc command.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-finding-location-of-public-ip-based-on-iploc-command/m-p/533394#M3778</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/163390"&gt;@KanwarSingh01&lt;/a&gt;&amp;nbsp;the fields &lt;STRONG&gt;loc_asn&lt;/STRONG&gt; and &lt;STRONG&gt;loc_asn_org&lt;/STRONG&gt; are missing in line 5 where the iploc stage command is being innvoked. Put it in there and you shall have the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bbarmanroy_0-1678154924168.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48486iB104FE22584B5A76/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="bbarmanroy_0-1678154924168.png" alt="bbarmanroy_0-1678154924168.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 02:09:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-finding-location-of-public-ip-based-on-iploc-command/m-p/533394#M3778</guid>
      <dc:creator>bbarmanroy</dc:creator>
      <dc:date>2023-03-07T02:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query: Finding Location of Public IP based on iploc command.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-finding-location-of-public-ip-based-on-iploc-command/m-p/533395#M3779</link>
      <description>&lt;P&gt;Hi, Just attached the wrong screenshot, in the first reply:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See below&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KanwarSingh01_0-1678155273713.png" style="width: 1559px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/48487i7264F6344610F8EA/image-dimensions/1559x226/is-moderation-mode/true?v=v2" width="1559" height="226" role="button" title="KanwarSingh01_0-1678155273713.png" alt="KanwarSingh01_0-1678155273713.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 02:15:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-finding-location-of-public-ip-based-on-iploc-command/m-p/533395#M3779</guid>
      <dc:creator>KanwarSingh01</dc:creator>
      <dc:date>2023-03-07T02:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: XQL Query: Finding Location of Public IP based on iploc command.</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-finding-location-of-public-ip-based-on-iploc-command/m-p/534277#M3828</link>
      <description>&lt;P&gt;Any suggestions guys?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 23:17:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/xql-query-finding-location-of-public-ip-based-on-iploc-command/m-p/534277#M3828</guid>
      <dc:creator>KanwarSingh01</dc:creator>
      <dc:date>2023-03-13T23:17:31Z</dc:date>
    </item>
  </channel>
</rss>

