Dashboards & Visualizations

Time Chart not dynamically changing when I select a different time

neilmac64
Path Finder

I have added a Time input to my chart, however the display does not update to show the selected time period. I have selected "Search on Change" - but this didn't help. What could I do to fix it?

neilmac64_0-1662549676119.png

As always, any help greatly appreciated.

NM

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

OK change the earliest and latest tag values to $field1.earliest$ and $field1.latest$ respectively

View solution in original post

neilmac64
Path Finder

I don't think so - what would I need to change to do that?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It depends on whether you are using Classic Dashboards or Dashboard Studio

0 Karma

neilmac64
Path Finder

Classic

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

OK change the earliest and latest tag values to $field1.earliest$ and $field1.latest$ respectively

neilmac64
Path Finder

Ahhh - got you (I think!)

Default (this is for each timechart on the dashboard):

| timechart values(value) by mac_address</query>
<earliest>0</earliest>
<latest></latest>
</search>

Changed to:

| timechart values(value) by mac_address</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>

It seems to have worked (I has to save as a new dashboard).

Many thanks again - you are a superb help.

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Tokens aren't always evaluated in edit mode so you have to save the dashboard to see their effects.

neilmac64
Path Finder

It's returning an invalid value:

neilmac64_0-1662552430543.png

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

I meant the earliest and latest settings for the searches in your panels not the timepicker input

Either edit the search for each panel, or switch to source code and change the SimpleXML tag values

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Are you using the token in your searches for your panels? If so, can you show how you are doing that?

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...