Dashboards & Visualizations

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

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?

Hi nl65, try this:

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

0 Karma

Explorer

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

0 Karma
Don’t Miss Global Splunk
User Groups Week!

Free LIVE events worldwide 2/8-2/12
Connect, learn, and collect rad prizes
and swag!