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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...