Splunk Search

Why does my token in my search query not work?


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



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



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



Labels (4)
0 Karma

Path Finder

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


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$)


|search Targed_Account_Name=$locked_out$


0 Karma

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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...