Dashboards & Visualizations

How do you use eval in XML drilldown?

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

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

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

Communicator

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

0 Karma

Contributor

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

0 Karma
Don’t Miss Global Splunk
User Groups Week!

Free LIVE events worldwide 2/8-2/12
Connect, learn, and collect rad prizes
and swag!