Splunk Search

how to use timerangepicker's earliest

lihongyan_84
Explorer

I want to only use timerangepicker'e earliest or latest. for example i set my search earliest is @mon and my search latest is timerangepicker's latest; Or i want to display the same day of last month comparing to timerangepticker

Tags (3)
0 Karma

woodcock
Esteemed Legend

Like this:

<form>
  <label>Using half of timepicker</label>
  <description>Using half of timepicker</description>
  <fieldset autoRun="true" submitButton="false">
    <input type="time" token="time_tok1" searchWhenChanged="true">
      <label>Chart Timespan/Width</label>
      <default>Last 24 hours</default>
    </input>
  </fieldset>
  <row>
      <chart>
        <title>Using earliest only</title>
        <searchString>earliest=$time_tok1.earliest$ latest=now() Your Search Here</searchString>
      </chart>
  </row>
  <row>
      <chart>
        <title>Using latest only</title>
        <searchString>earliest=0 latest=$time_tok1.latest$ Your Search Here</searchString>
      </chart>
  </row>
</form>
0 Karma

Ayn
Legend

Uhh...could you clarify what you want to do a bit more please?

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...