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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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