Dashboards & Visualizations

How to custom format a time token to be rendered in a label?

nl65
Explorer

I have a panel that displays a timechart.

Clicking a bar on the chart drills down to another dashboard passing the click.name as a parameter:

<drilldown target="_blank">
<link>
      <![CDATA[generaloverviewrange?clicked_time=$click.value$]]>
</link>
</drilldown>

I would like to generate a label for the new dashboard containing the selected time formatted as:

strptime("%m/%d/%Y",$click_time$)

How?

stephane_cyrill
Builder

Hi nl65, try this:

strptime( "$click_time$", "%m/%d/%Y %H:%M:%S" )

0 Karma

nl65
Explorer

I need the evaluated value - the title shows the string: strptime("$click_time$","%m/%d/%Y")

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...