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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...