- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Help with Dashboard with time span for with tstats
deodeshm
Explorer
08-25-2022
12:27 AM
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.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

gcusello

SplunkTrust
08-25-2022
12:51 AM
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
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
deodeshm
Explorer
08-25-2022
01:30 AM
Sorry, found the solution, I selected events as a panel so wasn't able to see any results.
Thanks for the response.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

gcusello

SplunkTrust
08-25-2022
01:46 AM
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 😉
