Splunk Search

How to use 15m time value (epoch parameter) from chart on drilldown?

loganseth
Path Finder

Hi.

I have a classic dashboard and am using a bar chart with

 

 

 

| timechart span=15m count

 

 

 

And I can pass that with $click.value$ to the drilldown dashboard, but thoughts on how to use that?

Unlike 'earliest' and 'latest' it's just a single value and the data does not have a 15m epoch value, so I think (at a high level), I'd need to

1. eval the _time column to create 15m buckets and then search for those, but probably also
2. pass the global parms (as well) to filter my results?

So, ya, I'm used to traditional SQL, so I could say 'WHERE time BETWEEN this AND that' but here I have to figure out how to 'match if the _time value is in this 15m epoch time' so I'm lost.

Thank you for thoughts!

 

 

Labels (1)
Tags (2)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

In the drilldown, evaluate a token using relative_time($click.value$,"+15m") and use both tokens in the url

VatsalJagani
SplunkTrust
SplunkTrust

Hello @loganseth , I'm a Splunk community moderator.

I just wanted to check if this answered your question. Can you mark the answer as a correct solution by clicking on "Accept as Solution"?

0 Karma

loganseth
Path Finder

it's a cool concept, but I can't get this to work.

imagine the drilldown brings back the individual records for that 15m interval.  the SPL panel supports tokens, of course, but there isn't a way I can use either, it seems - probably my issue.

on click i create time_val=$click.value$

in new chart, i see time_val in the url (time_val=1658978100.000)

but then when I add $time_val$ as a token (in the dashboard panel) for earliest, i get 'invalid earliest_time' so stuck actually implementing your suggestion.

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!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...