All Apps and Add-ons

Splunk Cloud Gateway: Why are dashboard tokens not working in mobile app?

falcalde
Explorer

Hello.
My app has a dashboard with multiple tokens that is working just fine in the web browser. Lately I installed cloud gateway, and managed to access my dashboard with the splunk mobile app. Unfortunately it seems all tokens are undefined or set as Null.

So i made a test dashboard:

<dashboard>
  <label>Mobile Test</label>
  <init>
    <set token="TK_msg">22</set>
  </init>
  <row>
    <panel>
      <table>
        <search>
          <query>| makeresults count=1
| eval msg = $TK_msg$
| table msg</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </table>
    </panel>
  </row>

This is not working on the app either. (it works on the web browser just fine.)

alt text

So are tokens working on the mobile app? How can I make this work?
Also, can this work on both mobile app and browser?

Thank you.

0 Karma
1 Solution

nicolen_splunk
Splunk Employee
Splunk Employee

Hi falcalde,

The Connected Experiences apps do not currently support the token or the element. I apologize for the missing detail in the documentation, I've updated the documentation here: https://docs.splunk.com/Documentation/Gateway/1.8.0/ReleaseNotes/VizSupport#Token_limitations

Alternatively, you could use a default value. Or, you can use a form input for the token value.

I'll speak with the Splunk Cloud Gateway team about possibly supporting these token configurations in the future. Thanks for sharing!

View solution in original post

nicolen_splunk
Splunk Employee
Splunk Employee

Hi falcalde,

The Connected Experiences apps do not currently support the token or the element. I apologize for the missing detail in the documentation, I've updated the documentation here: https://docs.splunk.com/Documentation/Gateway/1.8.0/ReleaseNotes/VizSupport#Token_limitations

Alternatively, you could use a default value. Or, you can use a form input for the token value.

I'll speak with the Splunk Cloud Gateway team about possibly supporting these token configurations in the future. Thanks for sharing!

falcalde
Explorer

Since this tokens are not coming from any input values, Is there any workaround to be able to give parameters to searches in mobile?

Also, is there any possibility to sign up for beta testing the token's implementation?

I'll speak with the Splunk Cloud
Gateway team about possibly supporting
these token configurations in the
future. Thanks for sharing!

Thank you.

0 Karma

falcalde
Explorer

Oh ok then. Thank you for the answer.

0 Karma

falcalde
Explorer

Is it possible that the mobile app just doesn't understand tokens yet? This is the new thing i tried:

<dashboard>
  <label>Mobile Test</label>
  <row>
    <panel>
      <table>
        <search>
          <query>| makeresults count=2
| eval msg = "$env:app$"
| table msg</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
        </search>
        <option name="drilldown">none</option>
        <option name="refresh.display">progressbar</option>
      </table>
    </panel>
  </row>
</dashboard>

On the web browser:

msg:
Auditoria_Balanzas
Auditoria_Balanzas
(which is correct)

On the mobile app:

msg:
$env:app$
$env:app$

However, on this docs page: https://docs.splunk.com/Documentation/Gateway/1.8.0/ReleaseNotes/VizSupport
Under supported drilldown configurations, it says it supports certain tokens.

Any help appreciated. Thank you.

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 ...