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!

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...

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 ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...