<?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 Convert Decimal to Time Format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-Decimal-to-Time-Format/m-p/522962#M147475</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have the below search will calculates on average how much time is being spent on the alerts that Splunk generates. On average, it has been calculated that 15 minutes would be spent on each alert for investigation etc. Therefore the below search was written.&amp;nbsp;&lt;/P&gt;&lt;P&gt;index="_internal" sourcetype="scheduler" thread_id="AlertNotifier*" alert_actions=email savedsearch_name=*&lt;BR /&gt;| stats count&lt;BR /&gt;| eval count=count/4&lt;/P&gt;&lt;P&gt;Result example: 14 Results x 15 Minutes = 210 Minutes/3 Hours 30 Minutes. My results are showing as '3.5 Hours. '&lt;/P&gt;&lt;P&gt;How could I change this so my final results will be in the format of '3 Hours 30 Minutes'.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;N.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2020 11:39:22 GMT</pubDate>
    <dc:creator>nlisle</dc:creator>
    <dc:date>2020-10-05T11:39:22Z</dc:date>
    <item>
      <title>Convert Decimal to Time Format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-Decimal-to-Time-Format/m-p/522962#M147475</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have the below search will calculates on average how much time is being spent on the alerts that Splunk generates. On average, it has been calculated that 15 minutes would be spent on each alert for investigation etc. Therefore the below search was written.&amp;nbsp;&lt;/P&gt;&lt;P&gt;index="_internal" sourcetype="scheduler" thread_id="AlertNotifier*" alert_actions=email savedsearch_name=*&lt;BR /&gt;| stats count&lt;BR /&gt;| eval count=count/4&lt;/P&gt;&lt;P&gt;Result example: 14 Results x 15 Minutes = 210 Minutes/3 Hours 30 Minutes. My results are showing as '3.5 Hours. '&lt;/P&gt;&lt;P&gt;How could I change this so my final results will be in the format of '3 Hours 30 Minutes'.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;N.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 11:39:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-Decimal-to-Time-Format/m-p/522962#M147475</guid>
      <dc:creator>nlisle</dc:creator>
      <dc:date>2020-10-05T11:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Decimal to Time Format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-Decimal-to-Time-Format/m-p/522967#M147478</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="_internal" sourcetype="scheduler" thread_id="AlertNotifier*" alert_actions=email savedsearch_name=*
| stats count
| eval count=count * 15 * 60
| eval count=tostring(count,"duration")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 05 Oct 2020 11:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-Decimal-to-Time-Format/m-p/522967#M147478</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-05T11:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Decimal to Time Format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-Decimal-to-Time-Format/m-p/522969#M147479</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/199406"&gt;@nlisle&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you can use the tostring function (with the "duration" option) in the eval command, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval count=tostring(count,"duration") &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 11:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-Decimal-to-Time-Format/m-p/522969#M147479</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-10-05T11:54:18Z</dc:date>
    </item>
  </channel>
</rss>

