<?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: iplocation query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655258#M226355</link>
    <description>&lt;P&gt;Does ClientIP hold a valid IP address?&lt;/P&gt;&lt;P&gt;Have you tried one of the IP addresses found in the ClientIP field in your makeresults line?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 06:42:09 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-08-23T06:42:09Z</dc:date>
    <item>
      <title>iplocation query: How to show the country with this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655253#M226352</link>
      <description>&lt;P&gt;index=o365 [ | inputlookup watchlistriskyusers.csv | rename email AS query | fields query ] sourcetype="o365:management:activity" eventtype=o365_authentication | spath | iplocation ClientIP | table UserId ClientIP DisplayName status Country&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when i run the above command , i am not able to get the country. country is blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| makeresults | eval myip="2001:4860:4860::8888" | iplocation myip&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;however, when i run this, it is able to show me the country. Can you help me to make the above first command work so that country will be shown?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 19:50:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655253#M226352</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-08-23T19:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655258#M226355</link>
      <description>&lt;P&gt;Does ClientIP hold a valid IP address?&lt;/P&gt;&lt;P&gt;Have you tried one of the IP addresses found in the ClientIP field in your makeresults line?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 06:42:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655258#M226355</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-23T06:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655261#M226358</link>
      <description>&lt;P&gt;yes it is able to get the country i try it the the makeresults query&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 06:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655261#M226358</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-08-23T06:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655276#M226365</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254197"&gt;@sulaimancds&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;are you sure that the fieldname, after the spath command is exactly "&lt;SPAN&gt;ClientIP&amp;nbsp;"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Usually after a spath command, the field names are more complicated. probably you need to rename the field or use that field name in the iplocation command.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=o365 [ | inputlookup watchlistriskyusers.csv | rename email AS query | fields query ] sourcetype="o365:management:activity" eventtype=o365_authentication 
| spath 
| iplocation &amp;lt;your_ClientIP_fieldname&amp;gt; 
| table UserId ClientIP DisplayName status Country&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 07:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655276#M226365</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-23T07:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655277#M226366</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254197"&gt;@sulaimancds&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;are you sure that the fieldname, after the spath command is exactly "&lt;SPAN&gt;ClientIP&amp;nbsp;"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Usually after a spath command, the field names are more complicated. probably you need to rename the field or use that field name in the iplocation command.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=o365 [ | inputlookup watchlistriskyusers.csv | rename email AS query | fields query ] sourcetype="o365:management:activity" eventtype=o365_authentication 
| spath 
| iplocation &amp;lt;your_ClientIP_fieldname&amp;gt; 
| table UserId ClientIP DisplayName status Country&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;HI it does not work, this is my original command before inserting. IPLocation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=o365 [ | inputlookup watchlistriskyusers.csv | rename email AS query | fields query ] sourcetype="o365:management:activity" eventtype=o365_authentication&lt;BR /&gt;| spath&lt;BR /&gt;| table UserId ClientIP DisplayName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;userid&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ClientIP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; displayname&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:abc@gamil.com" target="_blank" rel="noopener"&gt;abc@gamil.com&lt;/A&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.1.1.1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abcpc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;need help work to show country of the ClientIP&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 07:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655277#M226366</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-08-23T07:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655278#M226367</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254197"&gt;@sulaimancds&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I said, the usual issue is that the field name used in the iplocation command isn't exactly the one you have from your logs, for this reason I hinted to check the field names,&lt;/P&gt;&lt;P&gt;also because the spath command has always field names more structured (e.g. event.access.ip{}), but if your search extracts the ClientIP you could try to use it.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 08:10:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655278#M226367</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-23T08:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655279#M226368</link>
      <description>&lt;P&gt;hi i try with iplocation ClientIP it does not work&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 08:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655279#M226368</guid>
      <dc:creator>sulaimancds</dc:creator>
      <dc:date>2023-08-23T08:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: iplocation query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655280#M226369</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/254197"&gt;@sulaimancds&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please check if in the interesting fields there is another alias of the ClientIP (having the same value) and try to use it.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 08:21:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/iplocation-query-How-to-show-the-country-with-this-search/m-p/655280#M226369</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-23T08:21:28Z</dc:date>
    </item>
  </channel>
</rss>

