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!

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...

Skip the Awkward Silence: Have a .conf-ersation at .conf26

Picture this. You arrive at .conf26 already having your socializing and networking plans mapped out. No ...

Rethinking Zero Trust: From Product Purchases to Logical Control Evidence

Implementing Zero Trust (ZT) across complex environments often falters at the very beginning due to a ...