Alerting

Create an alert for field that has two values when it should only have one

asaprobo
New Member

Example:

userid: 123 should have a unique pin # and no other pin #s.

sometimes during a transaction userid's are assigned two pin #s by mistake. Alert when a userid has more than one pin #
transaction 1:
userid: 123
pin#: abc

transaction 2:
userid: 123
pin#: def

Tags (1)
0 Karma

pradeepkumarg
Influencer
...| stats dc(pin), values(pin) by user| search dc(pin) >  1 

JDukeSplunk
Builder

Maybe?

stats count(pin) AS COUNT by userid |search COUNT > 1
0 Karma

pradeepkumarg
Influencer

Looks like i was 4 seconds late in drafting the answer 🙂

0 Karma

JDukeSplunk
Builder

I like your use of dc better than mine. I think it would be less problematic.

0 Karma

JDukeSplunk
Builder

The take-away for asaprobo is, make a search that should only return counts of 1, and have a subsearch to return results greater than 1 and alert on that.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...