<?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 color cells with time format (duration) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350747#M103817</link>
    <description>&lt;P&gt;Is there any way to do it without js?&lt;BR /&gt;
Splunk gives option to put colors, and one option is about colour range. The problem I have is that as the format is in time format, it doesn't recognize well, I think, if something is greater or not from a value.&lt;/P&gt;

&lt;P&gt;I've tried to put 00:45:00 and 2700 (45min *60 sec), and none worked.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 15:30:25 GMT</pubDate>
    <dc:creator>marina_rovira</dc:creator>
    <dc:date>2017-04-26T15:30:25Z</dc:date>
    <item>
      <title>How to color cells with time format (duration)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350744#M103814</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;

&lt;P&gt;I have a table full of calls information and I want to give colour to one of them:&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/2837iDD77EF909335FFAE/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;I've tried the fieldformat thing but I can not set colors. I would like to use the options that splunk give for table format.&lt;/P&gt;

&lt;P&gt;I like to set the calls which have a duration greater than 45 minutes to be in yellow.&lt;/P&gt;

&lt;P&gt;Any idea how can i do this?&lt;/P&gt;

&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 14:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350744#M103814</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2017-04-26T14:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to color cells with time format (duration)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350745#M103815</link>
      <description>&lt;P&gt;Hope you refer &lt;A href="http://answers.splunk.com/answers/83206/color-in-a-table-based-on-values"&gt;http://answers.splunk.com/answers/83206/color-in-a-table-based-on-values&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 15:09:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350745#M103815</guid>
      <dc:creator>koppolu17</dc:creator>
      <dc:date>2017-04-26T15:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to color cells with time format (duration)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350746#M103816</link>
      <description>&lt;P&gt;You could try doing a eval on the time to get the a number of minutes, then use a rangemap to color the cells you want.&lt;/P&gt;

&lt;P&gt;check this page&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/65240/converting-hours-minutesseconds-to-a-numerical-value.html" target="_blank"&gt;https://answers.splunk.com/answers/65240/converting-hours-minutesseconds-to-a-numerical-value.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;search="foobar"&lt;BR /&gt;
| rex field="MaxCallDuration" "(?\d{2}):(?\d{2})'(?\d{2})"&lt;BR /&gt;
| eval duration_seconds = ((hour*3600)+(min*60)+sec)&lt;BR /&gt;
| rangemap field=duration_seconds low=1-59 guarded=60-179 elevated=180-479 high=480-899 severe=900-36000&lt;BR /&gt;
| stats count by range&lt;/P&gt;

&lt;P&gt;low = green&lt;BR /&gt;
 guarded = blue&lt;BR /&gt;
 elevated = yellow&lt;BR /&gt;
 high = orange&lt;BR /&gt;
 severe =red&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350746#M103816</guid>
      <dc:creator>jamesbrock</dc:creator>
      <dc:date>2020-09-29T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to color cells with time format (duration)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350747#M103817</link>
      <description>&lt;P&gt;Is there any way to do it without js?&lt;BR /&gt;
Splunk gives option to put colors, and one option is about colour range. The problem I have is that as the format is in time format, it doesn't recognize well, I think, if something is greater or not from a value.&lt;/P&gt;

&lt;P&gt;I've tried to put 00:45:00 and 2700 (45min *60 sec), and none worked.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 15:30:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350747#M103817</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2017-04-26T15:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to color cells with time format (duration)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350748#M103818</link>
      <description>&lt;P&gt;I think I'm not understanding your answer, here you have what I'm doing:&lt;/P&gt;

&lt;P&gt;| eval MaxHandleTimesecs=strptime(MaxHandleTime, "%H:%M:%S")-strptime("00:00:00", "%H:%M:%S") ----&amp;gt; I do this with all the fields with duration&lt;/P&gt;

&lt;P&gt;| stats sum(CallsPresented) as "Number of Calls".... sum(MaxHandleTimesecs) as MaxCallDuration by  CSQName ---&amp;gt; The "..." are the other fields, the same as sum(..)&lt;/P&gt;

&lt;P&gt;| fieldformat MaxCallDuration=tostring(round('MaxCallDuration',0),"duration")   | table CSQName,"Number of Calls","Calls abandoned","Average time to response","Average call duration","Max Time to Abandon",MaxCallDuration&lt;/P&gt;

&lt;P&gt;All to have a table with by Name, all the duration fields calculations, for having sum up all the durations. &lt;/P&gt;

&lt;P&gt;I've checked and withot the fieldformat or converting it as strign to show in HH:MM:SS format, it works. How can I do for it to work also even in the other format?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 09:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-color-cells-with-time-format-duration/m-p/350748#M103818</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2017-04-27T09:18:40Z</dc:date>
    </item>
  </channel>
</rss>

