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
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...