<?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: Creating time search butons in a view in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-time-search-butons-in-a-view/m-p/101014#M26104</link>
    <description>&lt;P&gt;After researching I was able to find the answer I used the following solution:&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="TimeRangePicker"&gt;&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="selected" /&gt;Last 24 hours&lt;BR /&gt;
&lt;PARAM name="searchWhenChanged" /&gt;True &lt;BR /&gt;
&lt;MODULE name="JobProgressIndicator"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
&lt;MODULE name="FlashChart"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;Hope it helps somebody else&lt;/P&gt;</description>
    <pubDate>Thu, 20 Dec 2012 20:20:04 GMT</pubDate>
    <dc:creator>dannux</dc:creator>
    <dc:date>2012-12-20T20:20:04Z</dc:date>
    <item>
      <title>Creating time search butons in a view</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-time-search-butons-in-a-view/m-p/101013#M26103</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I have created a dynamic view that display data for the last 24 hours for a particular search. Is it possible to create a series of buttons that will allow me to modify the search timeline?&lt;/P&gt;

&lt;P&gt;Ideally I want to modify the timespan by year, month, day, hour. In the same view&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Dan&lt;/P&gt;

&lt;P&gt;This is the code of my view:&lt;/P&gt;

&lt;P&gt;&lt;VIEW refresh="300" template="dashboard.html"&gt;&lt;BR /&gt;
  &lt;MODULE name="HiddenSearch" autorun="True" layoutpanel="panel_row1_col1"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;sourcetype="pcs_servers" | timechart span="5m" avg(zCPU_IDLE) by source&lt;BR /&gt;
    &lt;PARAM name="earliest" /&gt;-24h&lt;BR /&gt;
    &lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;
      &lt;PARAM name="chart" /&gt;line&lt;BR /&gt;
 &lt;PARAM name="primaryAxisTitle.text" /&gt;time&lt;BR /&gt;
      &lt;PARAM name="legend.placement" /&gt;right&lt;BR /&gt;
      &lt;PARAM name="chartTitle" /&gt;PCS Servers Idle CPU&lt;BR /&gt;
      &lt;MODULE name="JobProgressIndicator"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
      &lt;MODULE name="FlashChart"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
    &lt;/MODULE&gt;&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;BR /&gt;
  &lt;MODULE name="HiddenSearch" autorun="True" layoutpanel="panel_row2_col1"&gt;&lt;BR /&gt;
    &lt;OBJECT&gt;&lt;PARAM name="search" /&gt;sourcetype="pcs_servers" | timechart span="5m" avg(free_memory) by source&lt;BR /&gt;
    &lt;PARAM name="earliest" /&gt;-24h&lt;BR /&gt;
    &lt;MODULE name="HiddenChartFormatter"&gt;&lt;BR /&gt;
      &lt;PARAM name="chart" /&gt;column&lt;BR /&gt;
 &lt;PARAM name="primaryAxisTitle.text" /&gt;time&lt;BR /&gt;
      &lt;PARAM name="legend.placement" /&gt;right&lt;BR /&gt;
      &lt;PARAM name="chartTitle" /&gt;PCS Servers Free MeM&lt;BR /&gt;
      &lt;MODULE name="JobProgressIndicator"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
      &lt;MODULE name="FlashChart"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
    &lt;/MODULE&gt;&lt;BR /&gt;
  &lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;BR /&gt;
&lt;/VIEW&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-time-search-butons-in-a-view/m-p/101013#M26103</guid>
      <dc:creator>dannux</dc:creator>
      <dc:date>2020-09-28T12:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating time search butons in a view</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-time-search-butons-in-a-view/m-p/101014#M26104</link>
      <description>&lt;P&gt;After researching I was able to find the answer I used the following solution:&lt;/P&gt;

&lt;P&gt;&lt;MODULE name="TimeRangePicker"&gt;&lt;BR /&gt;
&lt;OBJECT&gt;&lt;PARAM name="selected" /&gt;Last 24 hours&lt;BR /&gt;
&lt;PARAM name="searchWhenChanged" /&gt;True &lt;BR /&gt;
&lt;MODULE name="JobProgressIndicator"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
&lt;MODULE name="FlashChart"&gt;&lt;/MODULE&gt;&lt;BR /&gt;
&lt;/OBJECT&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;Hope it helps somebody else&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2012 20:20:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-time-search-butons-in-a-view/m-p/101014#M26104</guid>
      <dc:creator>dannux</dc:creator>
      <dc:date>2012-12-20T20:20:04Z</dc:date>
    </item>
  </channel>
</rss>

