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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...