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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...