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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...