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!

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

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...