Splunk Search

Why does my token in my search query not work?

rkris
Explorer

I've created a dropdown input field that shows the user accounts that are locked out

paste_splunk_qns_1a.PNG

 

And this is the search string that i'm using for my dashboard panel to display the user accounts that are locked out

paste_splunk_qns_1c.PNG

 

When I select each of the user accounts listed below, the dashboard panel doesn't show them. How do I fix this?

rkris_0-1596608402774.png

 

Labels (4)
0 Karma

chrkohm
Path Finder

I think "match" is here the problem. Because the QuickRef Guide says:

splunk-quick-reference-guide.pdf 

match(X,Y) Returns if X matches the regex pattern Y. match(field, "^\d{1,3}\.\d$")

 

Did you tried: 

|search Targed_Account_Name IN ($locked_out$)

or

|search Targed_Account_Name=$locked_out$

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust
Where are you getting the list of names? If it's not from the same source as the search string in the second screen shot then it's possible there simply no events for those users. Another possibility is the user names are slightly different and failing to match the token.
---
If this reply helps you, Karma would be appreciated.
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 ...