<?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 round a millisecond output? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403152#M168712</link>
    <description>&lt;P&gt;maybe like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| transaction node startswith="up_or_down=down" endswith="up_or_down=available"
| stats avg(duration) as avg_outage by node
| eval rounded_avg_outage = round(avg_outage, 2)
| eval MTTR = tostring(rounded_avg_outage, "duration)
| table node MTTR
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jun 2018 00:46:59 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2018-06-26T00:46:59Z</dc:date>
    <item>
      <title>How to round a millisecond output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403149#M168709</link>
      <description>&lt;P&gt;Does anyone know how to round a time readout from 00:07:06.53846153846155  to 00:07:06.54?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 15:37:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403149#M168709</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-06-25T15:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to round a millisecond output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403150#M168710</link>
      <description>&lt;P&gt;What is the format of the underlying field?  There are at least five different ways, but the efficiency will be based on the field format.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 16:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403150#M168710</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-06-25T16:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to round a millisecond output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403151#M168711</link>
      <description>&lt;P&gt;Thanks for the response&lt;/P&gt;

&lt;P&gt;Here's the base of the search with MTTR is the mean time to repair or average outage time averaged by duration. The "avg_outage" is epoch:&lt;/P&gt;

&lt;P&gt;| transaction node startswith="up_or_down=down" endswith="up_or_down=available"&lt;BR /&gt;
| stats avg(duration) as avg_outage by node&lt;BR /&gt;
| eval MTTR=tostring(avg_outage, "duration") &lt;BR /&gt;
| table node MTTR&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:09:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403151#M168711</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2020-09-29T20:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to round a millisecond output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403152#M168712</link>
      <description>&lt;P&gt;maybe like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| transaction node startswith="up_or_down=down" endswith="up_or_down=available"
| stats avg(duration) as avg_outage by node
| eval rounded_avg_outage = round(avg_outage, 2)
| eval MTTR = tostring(rounded_avg_outage, "duration)
| table node MTTR
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 00:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403152#M168712</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-06-26T00:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to round a millisecond output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403153#M168713</link>
      <description>&lt;P&gt;Excellent!! That worked. I appreciate it.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 13:03:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-round-a-millisecond-output/m-p/403153#M168713</guid>
      <dc:creator>heybails88</dc:creator>
      <dc:date>2018-06-26T13:03:03Z</dc:date>
    </item>
  </channel>
</rss>

