Dashboards & Visualizations

is it possible to add a count in title tags

jip31
Motivator

hi

is it possible to add a count variable between ?
I want to display a variable count in this tag

 <title>Perimeter : **xxx** machines</title>??

could you help me please??

Tags (1)
0 Karma
1 Solution

vnravikumar
Champion

Hi

You can specify inside div

<row depends="$show$">
    <panel>
      <html>
        <div>
          Perimeter: <b>$token$</b> machines
        </div>
      </html>
      <table>
        <search>
...
...

View solution in original post

0 Karma

niketn
Legend

@jip31 is it for dashboard title or panel title. Panel titles allow you to use tokens. For dashboard title/description you would need a workaround. Refer to one of old answer of mine:

https://answers.splunk.com/answers/712013/how-do-you-display-the-date-in-a-dashboard-title.html

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

jip31
Motivator

its for panel title

0 Karma

jip31
Motivator

its for panel title...

0 Karma

vnravikumar
Champion

Hi

You can specify inside div

<row depends="$show$">
    <panel>
      <html>
        <div>
          Perimeter: <b>$token$</b> machines
        </div>
      </html>
      <table>
        <search>
...
...
0 Karma

jip31
Motivator

thanks
i tested with a token entry it works
but I would like to link the token value with a stats count
how to link the both please?

0 Karma

vnravikumar
Champion

Try this

<dashboard>
  <label>BG</label>
  <row>
    <panel>
      <title>Total count: $count$</title>
      <table>
        <search>
          <query>index="_internal" |stats count by host</query>
          <earliest>-24h@h</earliest>
          <latest>now</latest>
          <done>
            <set token="count">$result.count$</set>
          </done>
        </search>
        <option name="drilldown">none</option>
      </table>
    </panel>
  </row>
</dashboard>
0 Karma

jip31
Motivator

thanks a lot

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...