Splunk Search

Help with Dashboard with time span for with tstats

deodeshm
Explorer

I am trying to build a dashboard with time input, how can I use the time selected to pass to below query?

 

| tstats `summariesonly` earliest(_time) as _time from datamodel=Incident_Management.Notable_Events_Meta by source,Notable_Events_Meta.rule_id | `drop_dm_object_name("Notable_Events_Meta")` | `get_correlations` | stats count by rule_name

 

e.g. if I select 7 days, it should show data for 7 days only.

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @deodeshm,

what's your problem?

changing the value in the Time Picker also the time period in the tstats command changes.

obviously, remember to correlate the time of the panel to the Time Picker.

Ciao.

Giuseppe

deodeshm
Explorer

Sorry, found the solution, I selected events as a panel so wasn't able to see any results.

 

Thanks for the response.

0 Karma

gcusello
SplunkTrust
SplunkTrust

hi @deodeshm,

good for you, see next time!

Please accept one answer for the other people of Community

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...