Dashboards & Visualizations

Applying token to date time functions in a dashboard

PB
Loves-to-Learn Lots

Looking to build an interactive dashboard from csv file which contains timestamp. 

If we select last 7 days, am looking to filter 19th May to 13th May of data from this below sample table. 

Sample data: 

_timeIndexSourcetype
19-05-2024 05:30xy
18-05-2024 05:30xy
...  

 

One of the input am planning is Time frame, so if i've to pass the token to the panels am trying to use |eval Time=relative_time(now(),"$time_tok$") which is not working as time token comes with earliest and latest timestamps. So, I've tried strptime to convert but still no luck over there. 

Can someone suggest a better way? 

 

Labels (1)
0 Karma

KendallW
Contributor

Hi @PB Could you please share your dashboard's XML?

If I understand correctly, you want to pick a time range using Splunk's time picker on the dashboard, then have data from the CSV (lookup?) file returned by a search where the _time column in the CSV falls within the range specified in the time picker?

0 Karma

PB
Loves-to-Learn Lots

Hi @KendallW 
yes, that's exactly right. _time is one of the columns in a lookup file.

And I want to choose the _time range from Lookup file using the time picker in Splunk dashboard. 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...