Dashboards & Visualizations

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

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

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

SplunkTrust
SplunkTrust

@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

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

SplunkTrust
SplunkTrust

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