Dashboards & Visualizations

In a dashboard with a custom drilldown, how would I add 1ms to earliest=$click.value$ to get latest?

damucka
Builder

Hello,

In my dashboard, I need to define the custom drilldown where I would like to transport the _time, which is in the first column of my panel table. For that I need to have earliest and latest defined, where latest would be = earliest+1ms (at least that is how the Auto drilldown option gets it).

How would I do it?

My custom drilldown search looks as follows at the moment:

    index=mlbso sourcetype=*_transports source="*$sourcesid$*.$targetsid$" transport_exitcode=8 earliest=$click.value$ latest=???

Please adise.

Kind Regards,
Kamil

0 Karma
1 Solution

kmaron
Motivator

You should be able to do an eval to add the time.

 <drilldown>
           <eval token="latesttime">$click.value$+1ms</eval>
           <link>index=mlbso sourcetype=*_transports source="*$sourcesid$*.$targetsid$" transport_exitcode=8 earliest=$click.value$ latest=$latesttime$</link>
 </drilldown>

View solution in original post

0 Karma

kmaron
Motivator

You should be able to do an eval to add the time.

 <drilldown>
           <eval token="latesttime">$click.value$+1ms</eval>
           <link>index=mlbso sourcetype=*_transports source="*$sourcesid$*.$targetsid$" transport_exitcode=8 earliest=$click.value$ latest=$latesttime$</link>
 </drilldown>
0 Karma

damucka
Builder

Thank you.
It worked with

<eval token="latesttime">$click.value$+1ms</eval>
0 Karma

damucka
Builder

$click.value$+0.001

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 ...