Splunk Search

AnomaliDetection does not detect outlier data

ashishmgupta
Explorer

In the below dataset, there are two different ISPs for the user from their usual ones.
NordVPN for John and Quadranet for Jill – but this search using anomalidetection is detecting only john’s but not Jill’s.
Any idea why and what is the better way to detect the ISP outlier?

source="isp_data2.csv"  index="test" sourcetype="csv"
| anomalydetection "ISP" "EmailAddress" action=annotate
| eval isOutlier = if(probable_cause != "", "1", "0")
| table "ISP" "EmailAddress", probable_cause, isOutlier
| sort 100000 probable_cause

 

 

EmailAddressISPtimestamp
[email protected]Comcast1/1/2020
[email protected]Comcast1/2/2020
[email protected]Comcast1/3/2020
[email protected]Comcast1/4/2020
[email protected]Comcast1/5/2020
[email protected]Comcast1/6/2020
[email protected]Comcast1/7/2020
[email protected]Comcast1/8/2020
[email protected]Comcast1/9/2020
[email protected]Comcast########
[email protected]Comcast########
[email protected]Comcast########
[email protected]Comcast########
[email protected]NordVPN########
[email protected]Comcast########
[email protected]Comcast########
[email protected]Comcast########
[email protected]Comcast########
[email protected]Comcast########
[email protected]Comcast########
[email protected]Comcast########
[email protected]Comcast########
[email protected]Comcast########
[email protected]Spectrum2/1/2020
[email protected]Spectrum2/2/2020
[email protected]Spectrum2/3/2020
[email protected]Spectrum2/4/2020
[email protected]Spectrum2/5/2020
[email protected]Spectrum2/6/2020
[email protected]Spectrum2/7/2020
[email protected]Spectrum2/8/2020
[email protected]Spectrum2/9/2020
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Quadranet########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum########
[email protected]Spectrum3/1/2020
0 Karma

tscroggins
SplunkTrust
SplunkTrust

Hi @ashishmgupta,

As a quick fix, try:

| anomalydetection "ISP" "EmailAddress" action=annotate cutoff=false

tayvionp
Explorer

You seem to be missing the filter command
| where isOutlier=1

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Optimize AI at Scale: Must-Attend Observability Sessions at .conf26

conf26   With nearly 70 breakout sessions on the docket, the .conf26 Observability track is designed to help ...

How much can you really learn in 3 minutes?

Observability can certainly be hard to understand – there's a lot of jargon and buzzwords and it seems to ...

Event Series: The Agentic SOC: Trust Before Autonomy

AI is fundamentally changing security operations, but true progress requires more than just automation—it ...