Dashboards & Visualizations

When passing token to drilldown dashboard, why is it unable to get the value of that token in the exported pdf?

surekhasplunk
Communicator

Hi,

I am passing a token to drilldown dashboard and in the drilldown dashboard title, I am using token $ba$ to display the clicked business area from the clicked row, which is working fine.
But when I am exporting pdf from that dashboard it appears as $ba$ rather than showing the value of the token which appears fine in the dashboard.

So what feature needs to be enabled to get the value of that token in the exported pdf?

Attached is my drilldown page code.

<label></label>
  <row>
    <panel>
      <table>
        <title>Breakdown for: Ojective Settings : $ba$ : Completed</title>
        <search>
          <query>bla bla
</search>
        <option name="count">100</option>
        <option name="drilldown">none</option>
        <option name="link.exportResults.visible">1</option>
        <option name="link.inspectSearch.visible">0</option>
        <option name="link.openPivot.visible">0</option>
        <option name="link.openSearch.visible">0</option>
        <option name="refresh.link.visible">1</option>
      </table>
    </panel>
  </row>
</dashboard>
0 Karma

cmerriman
Super Champion

I am not entirely sure why it doesn't work in the title - i would submit a bug in the support portal. However, as a workaround, if you can use an HTML panel as the header, that seems to work.

<row>
     <panel>
       <html>Breakdown for: Ojective Settings : $ba$ : Completed</html>
      <table>     <search>
           <query>|makeresults|eval foo="bar"</query>
           <done><set token="ba">"test"</set></done>
 </search>
         <option name="count">100</option>
         <option name="drilldown">none</option>
         <option name="link.exportResults.visible">1</option>
         <option name="link.inspectSearch.visible">0</option>
         <option name="link.openPivot.visible">0</option>
         <option name="link.openSearch.visible">0</option>
         <option name="refresh.link.visible">1</option>
       </table>
     </panel>
   </row>
0 Karma

niketn
Legend

@surekhasplunk is the issue with scheduled dashboard PDF? Have you checked whether Manual Print PDF works or not?
Tokens can not be used with Scheduled PDF refer to documentation about this limitation: http://docs.splunk.com/Documentation/Splunk/latest/Viz/DashboardPDFs#Limitations_to_PDF_generation

Following are some of previous question on similar lines:

https://answers.splunk.com/answers/625964/bug-why-splunk-dashboard-export-pdf-resolves-token.html
https://answers.splunk.com/answers/526670/display-datetime-range-in-dashbaord.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

surekhasplunk
Communicator

Hi @niketnilay,

Am not sheduling the dashboard . Am manually clicking on Export button on top right corner of the dashboard and then clicking on Export PDF. Still its not working . Am on 6.6.3

If i click on Export -> Print and save it to pdf format then there is no issue.

0 Karma

niketn
Legend

As mentioned in one of the above answered that is the observation that Export -> Print works fine, since it is same as Sending Browser for Printer and then Print using PDF option that you may have available on your machine.

If you are doing this manually, then Export --> Print should work for you!

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...