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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...