Security

Detecting Login Attempts both Successful and Not, that come from Outside of the United States

itsmevic
Communicator

Hello Splunkers! 

     I wanted to ask if anyone out there has some SPL that I can use as an alert to detect failed and successful logins detected that are !=United States? 

Thank you for your help! 

 

Labels (1)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi @itsmevic,

You can use iplocation command to check the country, as a sample;

| iplocation src_ip
| search Country!="United States"
If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

scelikok
SplunkTrust
SplunkTrust

Hi @itsmevic,

You can use iplocation command to check the country, as a sample;

| iplocation src_ip
| search Country!="United States"
If this reply helps you an upvote and "Accept as Solution" is appreciated.
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...