<?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: Custom times.conf in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43384#M2116</link>
    <description>&lt;P&gt;[real_time_menu]&lt;BR /&gt;
disabled=true &lt;/P&gt;

&lt;P&gt;is not working. still it is showing the real time menu in time range picker&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:02:22 GMT</pubDate>
    <dc:creator>srinathd</dc:creator>
    <dc:date>2020-09-28T18:02:22Z</dc:date>
    <item>
      <title>Custom times.conf</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43376#M2108</link>
      <description>&lt;P&gt;In this app I'm working on, I would like to restrict what the users can select from the time range picker.&lt;/P&gt;

&lt;P&gt;Specifically, I'm looking to remove the real time and all time options.  In addition, I am re-ordering some of the items.&lt;/P&gt;

&lt;P&gt;I copied $SPLUNK_HOME/etc/system/default/times.conf to $SPLUNK_HOME/etc/apps/$app_name/system/default and modified it.&lt;/P&gt;

&lt;P&gt;Running ./splunk cmd btool times list --debug shows it picking up the configuration from the app specific times.conf.  Unfortunately, in the advanced xml dashboard I'm working on that has the TimeRangePicker but still shows the standard time dropdowns.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2010 06:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43376#M2108</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2010-09-03T06:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Custom times.conf</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43377#M2109</link>
      <description>&lt;P&gt;Update: According to another answer by caphrim007 that there is a &lt;CODE&gt;disabled = true&lt;/CODE&gt; option that is not documented (as of 4.1.5), but available in 4.1.x and up, so the below comments about sub_menu are only relevant for use on 4.0.x.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;With all config files, the stanzas in scope are merged by stanza to generate the configuration that is relevant. In the case of times.conf, each time range is a separate stanza, so unless you disable on that is inherited from the system, it will remain.&lt;/P&gt;

&lt;P&gt;There is no explicit "disable" option that you can provide in your app to override/disable the inherited. However, an embarrassing workaround is to set:&lt;/P&gt;

&lt;P&gt;sub_menu = _non_existent_sub_menu&lt;/P&gt;

&lt;P&gt;for each stanza/range that you want removed from your app in your app's times.conf. This will suppress the respective stanza/range as long as there is no sub-menu by that name.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Regarding &lt;CODE&gt;btool&lt;/CODE&gt;, you should use the &lt;CODE&gt;--app=myapp&lt;/CODE&gt; option to see the effective configuration file for your app. &lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2010 07:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43377#M2109</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-03T07:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Custom times.conf</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43378#M2110</link>
      <description>&lt;P&gt;I like that - "embarrassing work around".&lt;/P&gt;

&lt;P&gt;I recopied the times.conf over, modified it so that the pre-set time ranges were set to a non existant sub menu.  &lt;/P&gt;

&lt;P&gt;Unfortunately the "Custom Time" range is still available, and sub-menu's are still visible even if they don't have any time ranges under them.&lt;/P&gt;

&lt;P&gt;I'm thinking this may have to be changed into an enhancement request - seems like we need to have more control over the "TimeRangePicker" module.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2010 19:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43378#M2110</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2010-09-03T19:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom times.conf</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43379#M2111</link>
      <description>&lt;P&gt;I think you can get rid of a sub menu by setting it's sub menu property to a non existent sub menu as well, but I don't know if there's a way to turn off the "custom time" option. I had a bug filed on this and it is marked "fixed", so perhaps you &lt;EM&gt;can&lt;/EM&gt; use "disabled = true" or "enabled = false" and it's just not documented.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2010 21:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43379#M2111</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-09-03T21:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom times.conf</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43380#M2112</link>
      <description>&lt;P&gt;I can verify what gkanapathy said about "disabled = true"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;
[real_time_menu]
disabled = true

[other]
disabled = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;works to remove the "Other" and "Real-time" menus from the TimeRangePicker if you add them to a times.conf in your app's default or local directory. Using splunk 4.1.4&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2010 21:48:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43380#M2112</guid>
      <dc:creator>caphrim007</dc:creator>
      <dc:date>2010-09-13T21:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom times.conf</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43381#M2113</link>
      <description>&lt;P&gt;In 5.0.1 "disabled=true" is still not documented, but it works for all stanzas.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Dec 2012 00:21:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43381#M2113</guid>
      <dc:creator>helge</dc:creator>
      <dc:date>2012-12-02T00:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom times.conf</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43382#M2114</link>
      <description>&lt;P&gt;Is this still available on splunk 6.0? I've created the times.conf file on the default folder of my app and the real_time_menu and the other menu still appear.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:20:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43382#M2114</guid>
      <dc:creator>jpenetra</dc:creator>
      <dc:date>2020-09-28T15:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom times.conf</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43383#M2115</link>
      <description>&lt;P&gt;Yes this is still available in 6.0 just confirmed. You may want to checkout btool results, and also verify that you've restarted, and make sure nothing in local of your app is overriding you default.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2014 14:57:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43383#M2115</guid>
      <dc:creator>mcronkrite</dc:creator>
      <dc:date>2014-08-05T14:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom times.conf</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43384#M2116</link>
      <description>&lt;P&gt;[real_time_menu]&lt;BR /&gt;
disabled=true &lt;/P&gt;

&lt;P&gt;is not working. still it is showing the real time menu in time range picker&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Custom-times-conf/m-p/43384#M2116</guid>
      <dc:creator>srinathd</dc:creator>
      <dc:date>2020-09-28T18:02:22Z</dc:date>
    </item>
  </channel>
</rss>

