Dashboards & Visualizations

How do you use eval in XML drilldown?

matansocher
Contributor

Hi,

I have a dashboard with a timechart, and I have created a drilldown for the timechart. the click uses the time clicked on, and passes it to another dashboard as a token. how do I change the click value before I pass the token to the next drilldown. I don't want the users to see the epoch time, I want them to see a regular date.

Thanks

0 Karma
1 Solution

matansocher
Contributor

I have figured it out. I needed to put the eval tag inside the drilldown tag like that:

<drilldown target="_blank">
         <eval token="startDate">strftime($click.value$,"%m/%d/%Y")</eval>
          <link>
                   ......
          </link>
</drilldown>

View solution in original post

matansocher
Contributor

I have figured it out. I needed to put the eval tag inside the drilldown tag like that:

<drilldown target="_blank">
         <eval token="startDate">strftime($click.value$,"%m/%d/%Y")</eval>
          <link>
                   ......
          </link>
</drilldown>

kunalmao
Communicator

you can use _time=strftime(_time,"%c) before passing it. Hope this helps

0 Karma

matansocher
Contributor

yes, that would be a good idea, but where am I using this? in the drilldown tag?

0 Karma
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...