Splunk Enterprise Security

Why is variable Substitution not working in drill down searches?

warsaw
Loves-to-Learn Lots

I have a correlation search where 'dest' field is present, and in drilldown search I have mentioned 

 

 

| search dest="$dest$"

 

 

however when i click on contributing events and the drill down search opens up with same query 

 

 

| search dest="$dest$"

 

 

 instead of the actual value of the 'dest' field, why doesn't this work?

Anyone faced this issue?

Tags (2)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

Have you assigned the clicked field dest to the token $dest$ in the drilldown section of the dashboard? Using the $dest$ in the subsequent search is using a TOKEN called dest, not a field called dest from a previous search.

<drilldown>
  <set token="dest">$row.dest$</set>
</drilldown>

 

0 Karma

warsaw
Loves-to-Learn Lots

@bowesmana no, actually this is not a dashboard drill down, it's drill down search in notable events of a correlation search.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try something like:

| search dest="$row.dest|n$"
0 Karma

warsaw
Loves-to-Learn Lots

No, this is not working, when i click on drill down this search appears 

 

| search dest="$row.dest|n$"

 

not with the actual value. 

0 Karma

mdicenzo
Explorer

I am struggling with the same thing, have you resolved this issue?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

What have you tried?

0 Karma

mdicenzo
Explorer

So originally I tried to have this as the correlation search 

 

index=o365 sourcetype="mscs:azure:eventhub" "body.operationName"="Risky user" "body.properties.riskLevel"=high | rename body.properties.userDisplayName AS Display_Name | rename body.properties.userPrincipalName AS Email
| stats values(body.operationName) AS Operation_Name, count AS result BY Display_Name | eval dd="index=o365 sourcetype=mscs:azure:eventhub body.operationName=\"User Risk Detection\" body.properties.riskLevel=high \"body.properties.userDisplayName\"=".Display_Name

 

The drill down was then search $dd$. The problem is that the value in Display_Name needs quote for the search to work and I cannot seem to get that to work properly for .Display_Name.


If I have a correlation search of 

index=o365 sourcetype="mscs:azure:eventhub" "body.operationName"="Risky user" "body.properties.riskLevel"=high | rename body.properties.userDisplayName AS Display_Name | rename body.properties.userPrincipalName AS Email
| stats values(body.operationName) AS Operation_Name, count AS result BY Display_Name 

 

And a drill down of 

index=o365 sourcetype=mscs:azure:eventhub body.operationName="User Risk Detection" body.properties.riskLevel=high "body.properties.userDisplayName"=$Display_Name$

 

will that work?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

Ready to make your IT operations smarter and more efficient? Discover how to automate Splunk alerts with Red ...