<?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: Is there a way to remove the `Real-time` part that appears from the drop down time picker in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311694#M19939</link>
    <description>&lt;P&gt;This doesn't work, at least in version 7&lt;/P&gt;</description>
    <pubDate>Sat, 28 Apr 2018 23:14:57 GMT</pubDate>
    <dc:creator>derekarnold</dc:creator>
    <dc:date>2018-04-28T23:14:57Z</dc:date>
    <item>
      <title>Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311684#M19929</link>
      <description>&lt;P&gt;Is there a way to remove the realtime search option from my dropdown time picker. &lt;/P&gt;

&lt;P&gt;example of code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;fieldset autoRun="true" submitButton="false"&amp;gt;
    &amp;lt;input type="time" searchWhenChanged="true"&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliestTime&amp;gt;-24h@h&amp;lt;/earliestTime&amp;gt;
        &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="time_span"&amp;gt;
      &amp;lt;label&amp;gt;Time Span:&amp;lt;/label&amp;gt;
      &amp;lt;choice value="5m"&amp;gt;5m&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;5m&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Example of time-picker: Is there a way to remove the &lt;CODE&gt;Real-time&lt;/CODE&gt; part that appears from the drop down time picker(highlighted in red)?&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3933i96BE287967ABEC33/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;EDIT1&lt;/STRONG&gt; - This is the html code(when I do an inspect element on the dropdown) for the "Real-time" part of my pic above(The bit highlight in red). This is what I would like to remove, and as suggessted below, maybe css is the way to do it. Just not sure of the css to remove it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;div class="accordion-inner presets-container shared-timerangepicker-dialog-presets" data-cid="view112564" data-view="views/shared/timerangepicker/dialog/Presets" data-render-time="0.002"&amp;gt;
    &amp;lt;ul class="unstyled presets-group"&amp;gt;
        &amp;lt;li&amp;gt;Real-time&amp;lt;/li&amp;gt;
        &amp;lt;li&amp;gt;&amp;lt;a href="#" data-earliest="rt-30s" data-latest="rt"&amp;gt;30 second window&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;           
        &amp;lt;li&amp;gt;&amp;lt;a href="#" data-earliest="rt-1m" data-latest="rt"&amp;gt;1 minute window&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;         
        &amp;lt;li&amp;gt;&amp;lt;a href="#" data-earliest="rt-5m" data-latest="rt"&amp;gt;5 minute window&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;         
        &amp;lt;li&amp;gt;&amp;lt;a href="#" data-earliest="rt-30m" data-latest="rt"&amp;gt;30 minute window&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;           
        &amp;lt;li&amp;gt;&amp;lt;a href="#" data-earliest="rt-1h" data-latest="rt"&amp;gt;1 hour window&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;           
        &amp;lt;li&amp;gt;&amp;lt;a href="#" data-earliest="rt" data-latest="rt"&amp;gt;All time (real-time)&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;           
    &amp;lt;/ul&amp;gt;              
&amp;lt;div class="presets-divider-wrap"&amp;gt;
&amp;lt;div class="presets-divider"&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;               
&amp;lt;ul class="unstyled presets-group"&amp;gt;
    &amp;lt;li&amp;gt;Relative&amp;lt;/li&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Dec 2017 02:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311684#M19929</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2017-12-04T02:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311685#M19930</link>
      <description>&lt;P&gt;you can try to add a user role and do not give &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;rtsearch and schedule_rtsearch&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;else you can also go and edit authorize.conf to create a role. Please check the below sample role&lt;/P&gt;

&lt;P&gt;[role_limited_user]&lt;BR /&gt;
change_own_password = enabled&lt;BR /&gt;
embed_report = enabled&lt;BR /&gt;
get_metadata = enabled&lt;BR /&gt;
get_typeahead = enabled&lt;BR /&gt;
input_file = enabled&lt;BR /&gt;
list_deployment_client = enabled&lt;BR /&gt;
list_forwarders = enabled&lt;BR /&gt;
list_inputs = enabled&lt;BR /&gt;
output_file = enabled&lt;BR /&gt;
request_remote_tok = enabled&lt;BR /&gt;
rest_apps_view = enabled&lt;BR /&gt;
rest_properties_get = enabled&lt;BR /&gt;
run_debug_commands = enabled&lt;BR /&gt;
search = enabled&lt;BR /&gt;
schedule_search = enabled&lt;/P&gt;

&lt;H1&gt;this settings limited there maxium search window below is two weeks in seconds&lt;/H1&gt;

&lt;P&gt;srchTimeWin = 1209600&lt;/P&gt;

&lt;H1&gt;leave this capabilility commented out&lt;/H1&gt;

&lt;H1&gt;rtsearch = enabled&lt;/H1&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311685#M19930</guid>
      <dc:creator>kunalmao</dc:creator>
      <dc:date>2020-09-29T17:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311686#M19931</link>
      <description>&lt;P&gt;If you want, You can do it using a simple css fix&lt;/P&gt;

&lt;P&gt;If you are using simple xml. Add a html module like below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form onUnloadCancelJobs="True"&amp;gt;
    &amp;lt;label&amp;gt;test_css&amp;lt;/label&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
            &amp;lt;input type="time" token="field1" searchWhenChanged="true"&amp;gt;
            &amp;lt;label&amp;gt;Time Range&amp;lt;/label&amp;gt;
            &amp;lt;default&amp;gt;
                &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
                &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
            &amp;lt;/default&amp;gt;
            &amp;lt;/input&amp;gt;
            &amp;lt;html&amp;gt;
            &amp;lt;style&amp;gt;
                /* This is to remove the  "All Time (Real Time)" under "Preset"*/

                .presets-group a[data-earliest="rt"] {
                    display: none;
                }
            &amp;lt;/style&amp;gt;

            &amp;lt;/html&amp;gt;
        &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add it to the end of last panel  so that you can avoid unwanted padding/margin spaced added by html module&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 05:27:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311686#M19931</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2017-12-04T05:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311687#M19932</link>
      <description>&lt;P&gt;tks, css is the kind of solution I am looking for but I could not get this to work but see my edit1, I have included the html code, in the Question. As maybe the css can be slightly edited to work on that html? &lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 19:29:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311687#M19932</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2017-12-04T19:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311688#M19933</link>
      <description>&lt;P&gt;tks but would like to do it in the simple xml if possible.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 19:30:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311688#M19933</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2017-12-04T19:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311689#M19934</link>
      <description>&lt;P&gt;Hi HattrickNZ,&lt;/P&gt;

&lt;P&gt;you can hide the real-time presets using this css:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/* hide real-time accordion */
 div[id^='realtime_view'] {
   display: none;
 }
 /* hide real-time presets */
 div[id^='presets_view'] &amp;gt; div.accordion-body &amp;gt; div &amp;gt; ul:nth-child(1) {
   display:none;
 }
 /* hide divider after real-time presets */
 div[id^='presets_view'] &amp;gt; div.accordion-body &amp;gt; div &amp;gt; div:nth-child(2) {
   display:none;
 }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Put it in your app directory in &lt;CODE&gt;app server/static&lt;/CODE&gt; and use it in the dash board with &lt;CODE&gt;stylesheet="yourcssfilenamehere.css"&lt;/CODE&gt;, depending on your Splunk version you can either restart Splunkweb or &lt;CODE&gt;_bump&lt;/CODE&gt; it by accessing this URL &lt;CODE&gt;http[s]?://&amp;lt;SPLUNK_IP_ADDRESS&amp;gt;:8000/en-GB/_bump&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;After that the real-time presets are hidden:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3932iF9CB88BA8FB608EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;But one can still used them with the advanced options in the time range picker, so you additionally need to remove the &lt;CODE&gt;rtsearch&lt;/CODE&gt; capabilities from the user role to make sure user don't run a manual real-time search.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 19:51:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311689#M19934</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-12-04T19:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311690#M19935</link>
      <description>&lt;P&gt;can I put the css in the xml code like @paramagurukarthikeyan mentions below? That would be the ideal.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 20:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311690#M19935</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2017-12-04T20:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311691#M19936</link>
      <description>&lt;P&gt;It fails for me when trying inline....&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 20:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311691#M19936</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-12-04T20:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311692#M19937</link>
      <description>&lt;P&gt;Sorry I missed the trailing comment char (*/) in my css&lt;BR /&gt;
Please see the updated complete xml in my answer&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 08:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311692#M19937</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2017-12-05T08:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311693#M19938</link>
      <description>&lt;P&gt;Is there a way to hide accordions from first time picker and show everything from the second time picker.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 16:54:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311693#M19938</guid>
      <dc:creator>ss026381</dc:creator>
      <dc:date>2018-04-09T16:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311694#M19939</link>
      <description>&lt;P&gt;This doesn't work, at least in version 7&lt;/P&gt;</description>
      <pubDate>Sat, 28 Apr 2018 23:14:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311694#M19939</guid>
      <dc:creator>derekarnold</dc:creator>
      <dc:date>2018-04-28T23:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311695#M19940</link>
      <description>&lt;P&gt;Thanks for all the notes here and I finally figured it out...  Basically we have to set display:none to all the div that is used by the real-time search criteria.  I used the inspector to find the div element and the associated string that is used to match in the CSS stylesheet.&lt;/P&gt;

&lt;P&gt;Here's the example of what I did, and as Splunk updates their software this might change in the future too:&lt;/P&gt;

&lt;P&gt;When viewing source of the time picker, this is the code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="timefield" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Please enter a timeframe&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;!-- Added to remove real-time column and panel --&amp;gt;
    &amp;lt;html&amp;gt;
      &amp;lt;style&amp;gt;
         div[data-test="real-time-column"] {
             display: none;
         }
         div[data-test-panel-id="realTime"] {
             display: none;
         }
      &amp;lt;/style&amp;gt;
    &amp;lt;/html&amp;gt;
    &amp;lt;!-- End manual modification --&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Sep 2019 22:11:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311695#M19940</guid>
      <dc:creator>paxtaru</dc:creator>
      <dc:date>2019-09-16T22:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311696#M19941</link>
      <description>&lt;P&gt;I just realized I gave the same answer and you had the solution I came up with too.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 17:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/311696#M19941</guid>
      <dc:creator>dmarling</dc:creator>
      <dc:date>2019-10-07T17:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/513759#M34286</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/2012"&gt;@MuS&lt;/a&gt;- where is the location of this HTML/CSS file with the date/time options?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 18:44:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/513759#M34286</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2020-08-12T18:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to remove the `Real-time` part that appears from the drop down time picker</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/513819#M34292</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;nowadays this can be configured in the Splunk UI under `Settings - User Interface - Time Ranges`&lt;/P&gt;&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 22:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-remove-the-Real-time-part-that-appears-from/m-p/513819#M34292</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2020-08-12T22:27:11Z</dc:date>
    </item>
  </channel>
</rss>

