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
Champion

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!

From Data to Insight: Announcing the Winners of the Splunk Dashboard Contest

Hi Splunkers, First off, thank you to everyone who participated in our very first From Data to Insight: The ...

Splunk Developers: Construct Your Future at the .conf26 Builder Bar

Calling all Splunk architects, platform admins, and app developers: the site is open, and the blueprints are ...

Quick connection discovery mode for forwarders

When a Splunk forwarder loses connectivity to its indexers, it does not always reconnect immediately. In many ...