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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...