If your data has an IP address that identifies the source, then you can use the iplocation command. Assuming that the field name of the IP address is "source_ip", then this command will work to show you the country.
a_search_that_identifies_potential_attacks
| iplocation source_ip
| table source_ip Country City Region lat lon
By default, the command adds the additional fields to each event. Find out more in the docs at iplocation command You can filter the results by country or compute statistics with the returned fields, etc.
I am sure that the results aren't perfect, but I think that they are based on the free version of the MAXMIND database.
... View more