<?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: Finding Duration and formatting output in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/742229#M21897</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I took that and I'm trying to get the avg response time for each year. AvgAtScene is in seconds, so I'm trying to get that into the duration. Any suggestions there?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scottmkirkland_0-1742398375547.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38269i0FE7D07389DE503D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="scottmkirkland_0-1742398375547.png" alt="scottmkirkland_0-1742398375547.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2025 15:33:10 GMT</pubDate>
    <dc:creator>scottmkirkland</dc:creator>
    <dc:date>2025-03-19T15:33:10Z</dc:date>
    <item>
      <title>Finding Duration and formatting output</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/741727#M21852</link>
      <description>&lt;P&gt;I'm having trouble getting my duration into the format I'd prefer... I'd like to see the duration to be MM:SS. However, despite a few different approaches, I keep getting milliseconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scottmkirkland_0-1741892584951.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38174i62C9B9ACCD05D16A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="scottmkirkland_0-1741892584951.png" alt="scottmkirkland_0-1741892584951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scottmkirkland_1-1741892748016.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38175i5533B51BBDA89FD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="scottmkirkland_1-1741892748016.png" alt="scottmkirkland_1-1741892748016.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 19:06:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/741727#M21852</guid>
      <dc:creator>scottmkirkland</dc:creator>
      <dc:date>2025-03-13T19:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duration and formatting output</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/741732#M21853</link>
      <description>&lt;P&gt;Stop parsing the milliseconds from your time values, or convert the resultant time to an integer, or round the times to zero decimal places.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 20:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/741732#M21853</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-03-13T20:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duration and formatting output</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/741853#M21860</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Are you suggesting I just drop the %N in my strptime?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do that, my results don't change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scottmkirkland_0-1741975158767.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38207iE17EB4293B6B56F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="scottmkirkland_0-1741975158767.png" alt="scottmkirkland_0-1741975158767.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 17:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/741853#M21860</guid>
      <dc:creator>scottmkirkland</dc:creator>
      <dc:date>2025-03-14T17:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duration and formatting output</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/741897#M21862</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244583"&gt;@scottmkirkland&lt;/a&gt;- In your latest query you can just drop all millisecond zeros with the help of substr.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval secondsToAtScene = tonumber(substr(secondsToAtScene, 1, len(secondsToAtScene)-7))&lt;/LI-CODE&gt;&lt;P&gt;This will just remove last 7 characters which will remove milliseconds part from it.&lt;/P&gt;&lt;P&gt;And you can apply this to any fields the same way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Mar 2025 08:41:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/741897#M21862</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2025-03-16T08:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duration and formatting output</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/741900#M21863</link>
      <description>You should use round to seconds before (or inside) tostring function. That just drop ms away.</description>
      <pubDate>Sun, 16 Mar 2025 10:53:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/741900#M21863</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2025-03-16T10:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duration and formatting output</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/742229#M21897</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I took that and I'm trying to get the avg response time for each year. AvgAtScene is in seconds, so I'm trying to get that into the duration. Any suggestions there?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scottmkirkland_0-1742398375547.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38269i0FE7D07389DE503D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="scottmkirkland_0-1742398375547.png" alt="scottmkirkland_0-1742398375547.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 15:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/742229#M21897</guid>
      <dc:creator>scottmkirkland</dc:creator>
      <dc:date>2025-03-19T15:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Duration and formatting output</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/742235#M21898</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval AvgResponse=tostring(round(AvgAdScene,0),"duration")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Mar 2025 16:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Finding-Duration-and-formatting-output/m-p/742235#M21898</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-03-19T16:09:26Z</dc:date>
    </item>
  </channel>
</rss>

