<?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 highlight dynamic timelines in Splunk? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151736#M9247</link>
    <description>&lt;P&gt;Yeah. I had a look 6.x dashboard on that and tried to do highlight using .js file. My query here is am not able to do it so with | Highlight... command. Is there any other way that I can get it done with splunk query itself instead of going to .js?   &lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2015 18:40:59 GMT</pubDate>
    <dc:creator>SridharS</dc:creator>
    <dc:date>2015-07-31T18:40:59Z</dc:date>
    <item>
      <title>How to highlight dynamic timelines in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151734#M9245</link>
      <description>&lt;P&gt;hey hi, &lt;/P&gt;

&lt;P&gt;I am newbie to Splunk. I am trying to create a dashboard. I created the dashboard in a way that, if I give a group name, the servers which belongs to that particular group will get displayed along with their last response time(with the help of Community member). Now what I require is to highlight the servers which are not been reporting for past 7days. I google and made some reportime.js file and tried, but no luck.  Is there any way that I can do it in splunk itself without going to a .js file??&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 13:11:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151734#M9245</guid>
      <dc:creator>SridharS</dc:creator>
      <dc:date>2015-07-31T13:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight dynamic timelines in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151735#M9246</link>
      <description>&lt;P&gt;Take a look at Splunk 6.x &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Dashboard Examples.&lt;/A&gt; It contain many example and has what you are trying to do.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 17:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151735#M9246</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-07-31T17:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight dynamic timelines in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151736#M9247</link>
      <description>&lt;P&gt;Yeah. I had a look 6.x dashboard on that and tried to do highlight using .js file. My query here is am not able to do it so with | Highlight... command. Is there any other way that I can get it done with splunk query itself instead of going to .js?   &lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 18:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151736#M9247</guid>
      <dc:creator>SridharS</dc:creator>
      <dc:date>2015-07-31T18:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight dynamic timelines in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151737#M9248</link>
      <description>&lt;P&gt;The closest thing you have is using the heatmap overlay option or rangemap command, however what you want can only be accomplished with js.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2015 19:24:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151737#M9248</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-07-31T19:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight dynamic timelines in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151738#M9249</link>
      <description>&lt;P&gt;Hi,  I created a table_row_highlighting.js  and decoration.css  file and called it in my dashboard xml. But i find that this file is not effecting in my dashboard. &lt;/P&gt;

&lt;P&gt;In the .js file i want to highlight the list of server that are not responding for past 48hrs(i.e. 2 days). I tested the script and called it in my .xml file, but no luck. Can you please find what error I am facing here. Here the 'host'  and "Last" columns contains the server name and server's last response time. The .js is here &lt;/P&gt;

&lt;P&gt;require([&lt;BR /&gt;
    'underscore',&lt;BR /&gt;
    'jquery',&lt;BR /&gt;
    'splunkjs/mvc',&lt;BR /&gt;
    'splunkjs/mvc/tableview',&lt;BR /&gt;
    'splunkjs/mvc/simplexml/ready!'&lt;BR /&gt;
], function(_, $, mvc, TableView) {&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var CustomRangeRenderer = TableView.BaseCellRenderer.extend({
    canRender: function(cell) {

        return _('List').contains(cell.field);
    },
    render: function($td, cell) {



        var currentDate = new Date();
       var prevDate = new prevDate(cell.value)


        if (cell.field === 'Last') {
            if(prevDate&amp;lt;currentDate) {
                $td.addClass('range-cell').addClass('range-elevated');
            }
        }

        $td.date(currentDate.toFixed(currentDate)).addClass('date');
    }
});
mvc.Components.get('highlight').getVisualization(function(tableView) {

    tableView.table.addCellRenderer(new CustomRangeRenderer());
    tableView.on('rendered', function() {

        tableView.$el.find('td.range-cell').each(function() {
            $(this).parents('tr').addClass(this.className);
        });
    });

    tableView.table.render();
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;}); &lt;/P&gt;

&lt;P&gt;And I called this script here in .xml file&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151738#M9249</guid>
      <dc:creator>SridharS</dc:creator>
      <dc:date>2020-09-29T06:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight dynamic timelines in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151739#M9250</link>
      <description>&lt;P&gt;I called the .xmll in dashboard like this &lt;BR /&gt;
form script="~/splunk/bin/table_row_highlighting.js" stylesheet="~/splunk/share/splunk/search_mrsparkle/exposed/css/decoration.css"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:54:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151739#M9250</guid>
      <dc:creator>SridharS</dc:creator>
      <dc:date>2020-09-29T06:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight dynamic timelines in Splunk?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151740#M9251</link>
      <description>&lt;P&gt;You can't call the javascript/stylesheet like that. All js and css must reside in &lt;CODE&gt;$APP_HOME/appserver/static&lt;/CODE&gt;. So put &lt;CODE&gt;table_row_highlighting.js&lt;/CODE&gt; in that folder, and call it like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="table_row_highlighting.js"&amp;gt; ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Restart splunkweb once you have done this, and it should load the JS and execute.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 16:43:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-dynamic-timelines-in-Splunk/m-p/151740#M9251</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2015-08-03T16:43:27Z</dc:date>
    </item>
  </channel>
</rss>

