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!

ATTENTION: We’re Moving! (AGAIN!)

The Splunk Community Slack is undergoing a system migration to keep our workspace secure and ...

Deep Dive: Optimizing Telemetry Pipelines in Splunk Observability Cloud

In this session, we will peel back the layers of Splunk Observability Cloud’s cost-optimization features. ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...