<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to edit my inputlookup search to match the _time field from kvstore with the dashboard's time range picker? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-inputlookup-search-to-match-the-time-field-from/m-p/169022#M10390</link>
    <description>&lt;P&gt;First: If you have a requirement for _time based sorting and searching, do NOT use a kvstore. It wasn't designed for that. Instead, use summary indexing techniques which put the events back into searchable buckets with the correct time stamps. Then you can use a time picker to your heart's content over the summarized data. There really isn't anything you can do with the lookup to make it work like you wish.&lt;/P&gt;

&lt;P&gt;Here is an oldie, but goodie on summary indexing. &lt;A href="http://www.splunk.com/view/SP-CAAACZW"&gt;http://www.splunk.com/view/SP-CAAACZW&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2015 12:21:08 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2015-06-22T12:21:08Z</dc:date>
    <item>
      <title>How to edit my inputlookup search to match the _time field from kvstore with the dashboard's time range picker?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-inputlookup-search-to-match-the-time-field-from/m-p/169021#M10389</link>
      <description>&lt;P&gt;I have a heavy and complex search that runs as a scheduled search and saves its results in a lookup table.&lt;BR /&gt;
The kvstore has a field called &lt;CODE&gt;_time&lt;/CODE&gt; that is configured for time based lookups.&lt;/P&gt;

&lt;P&gt;Now, I want to make a dashboard that searches my inputlookup.&lt;BR /&gt;
So I add a panel with a search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup mylookup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But to my disappointment, I learned that searches that only hit a lookup doesn't support time pickers directly.&lt;/P&gt;

&lt;P&gt;I tried this and a few other suggestions from answers.splunk.com, but I can't find answers that don't hard code the time range&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup mylookup earliest=$time.earliest$ latest=$time.latest$   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I modify my search, so the &lt;CODE&gt;_time&lt;/CODE&gt; field gets matched to the time picker on my page?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 11:57:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-inputlookup-search-to-match-the-time-field-from/m-p/169021#M10389</guid>
      <dc:creator>lassel</dc:creator>
      <dc:date>2015-06-22T11:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputlookup search to match the _time field from kvstore with the dashboard's time range picker?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-inputlookup-search-to-match-the-time-field-from/m-p/169022#M10390</link>
      <description>&lt;P&gt;First: If you have a requirement for _time based sorting and searching, do NOT use a kvstore. It wasn't designed for that. Instead, use summary indexing techniques which put the events back into searchable buckets with the correct time stamps. Then you can use a time picker to your heart's content over the summarized data. There really isn't anything you can do with the lookup to make it work like you wish.&lt;/P&gt;

&lt;P&gt;Here is an oldie, but goodie on summary indexing. &lt;A href="http://www.splunk.com/view/SP-CAAACZW"&gt;http://www.splunk.com/view/SP-CAAACZW&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 12:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-inputlookup-search-to-match-the-time-field-from/m-p/169022#M10390</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2015-06-22T12:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my inputlookup search to match the _time field from kvstore with the dashboard's time range picker?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-inputlookup-search-to-match-the-time-field-from/m-p/169023#M10391</link>
      <description>&lt;P&gt;A summary index is a better solution. I must have skipped over it - so many concepts to learn &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I have to add that to preserve extracted fields in my query I had to apply a hack that I found in another answer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rename _raw as orig_raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/22431/adding-host-field-when-summary-indexing.html"&gt;http://answers.splunk.com/answers/22431/adding-host-field-when-summary-indexing.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 11:43:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-edit-my-inputlookup-search-to-match-the-time-field-from/m-p/169023#M10391</guid>
      <dc:creator>lassel</dc:creator>
      <dc:date>2015-06-25T11:43:10Z</dc:date>
    </item>
  </channel>
</rss>

