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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...