Splunk Search

How to display date values based on picker and sort it based on the value being pick

Dylan_Kyle
Loves-to-Learn Lots

Hi - i'm working on a simple dashboard where user will pick a certain date in a multipicker. Once date is being picked it will display data on every panel. My issue is that whenever i picked multiple dates for example:

27-Nov-2020
20-Nov-2020
30-Oct-2020

it will always get to the point that it will display the highest numeric value  (30-Oct-2020) despite that I picked the other dates first.sample.PNG

what i am looking for is to display date based on what did i select in the picker regardless of its numeric value and they should get display from right to left

i tried to change the date format in the lookup to see if it won't get sorted automatically but to no avail. it seems that date with the highest numerical values will automatically get sorted ascendingly

Tags (1)
0 Karma

to4kawa
Ultra Champion
| gentimes start=01/01/21 end=01/20/21
| table starthuman endtime
| eval starthuman = substr(starthuman,1,10)." 2021"
| reverse

If you make the X axis a string, I think you can do it in any order.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...