Dashboards & Visualizations

Display date/Time range in report

DonDandrea
Path Finder

I have created a form with a time selector dropdown box. When I print the results the dropdown box does not display. I need to have the dates and times selected displayed on the report. How can I do that? This is also useful for other dropdown boxes that are not time selectors.

<input type="time" searchWhenChanged="true">
  <default>Last 7 days</default>
</input>

Thank you,
Don

Tags (4)
1 Solution

DonDandrea
Path Finder
  <table>
    <searchString>|gentimes start=-1 | addinfo | convert ctime(info_m*) | eval Timerange=info_min_time." to ".info_max_time | table Timerange</searchString>
    <earliestTime>$earliest$</earliestTime>
    <latestTime>$latest$</latestTime>
  </table>

View solution in original post

DonDandrea
Path Finder
  <table>
    <searchString>|gentimes start=-1 | addinfo | convert ctime(info_m*) | eval Timerange=info_min_time." to ".info_max_time | table Timerange</searchString>
    <earliestTime>$earliest$</earliestTime>
    <latestTime>$latest$</latestTime>
  </table>

DonDandrea
Path Finder

I have made it a little further. AI am using a simple HTML tag to display text. Now I need to figure out how to convert -7d and Now into meaningful values to display.

Report Date From: $earliest$To: $latest$

Any help you could provide would still be appreciated.

Thank you,
Don

0 Karma
Get Updates on the Splunk Community!

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...