Splunk Search

mutiple search

riposans
Explorer

Hello everyone,

 i need solution for this.

my data :

userID=text123 , login_time="2024-03-21 08:04:42.201000", ip_addr=12.3.3.21

userID=text123, login_time="2024-03-21 08:00:00.001000", ip_addr=12.3.3.45

userID=text123, login_time="2024-03-21 08:02:12.201000", ip_addr=12.3.3.21

userID=text123, login_time="2024-03-21 07:02:42.201000", ip_addr=12.3.3.34

 

i want get data, userID="text123 " AND in the last 5 minutes AND if mutiple ip

i used join,map,append but not solved.please help for SPL this

Labels (1)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

Try this - use your index and I assume that the event _time stamp is the login time.

index=bla userID=text123 earliest=-5m@m latest=@m
| stats dc(ip) as ips by userID
| where ips>1

If your events contain other info than just login details, then you may need to add login_time=* to the search

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...