Dashboards & Visualizations

How can i set time input , where the user write start time (d/m/yy) and end time (d/m/yy) ?

tinpelayee
Engager

Hello plp i am trying to do a xml , where a user set a start time (writing in a box) them the end time, and those 2 time tokens send to a query to search in that range time. Any clue about this? Thanks!!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I take it you have a dashboard with two input boxes and you need to convert the user's text input into timestamps. If that's not right, please clarify the question.

You can do that using the strptime function.

... | eval start = strptime(startToken, "%d/%m/%y"), end = strptime(endToken, "%d/%m/%y") | ...
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...