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!

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 ...