I want to compare date strings by splunk queries please. I have 2 dropdown inputs. StartDate and EndDate
I have below result set populated from a dropdown as 'StartDate'. If the user selects 2018-05-03, then my EndDate should only have 2018-05-07 and 2018-05-16 available for users to pick. Date
How do I do the comparison logic within the same query please? Can Splunk compare dates alphabetically like Java strings ? Thank you.
In this case you can do a string comparison in order to test the dates. Here is a run-anywhere search (it sets up some data in the first three lines, then the last line is the one you want to look at) that can show you this capability: