<?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: Customised query- How to calculate the response time from the logs below? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-calculate-in-customized-query-the-response-time-from-the/m-p/622326#M14627</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;when i tried to give tonumber i am still seeing Sec&lt;BR /&gt;|evak Time=tonumber(Time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2022 22:26:53 GMT</pubDate>
    <dc:creator>Ash1</dc:creator>
    <dc:date>2022-11-28T22:26:53Z</dc:date>
    <item>
      <title>How to calculate in customized query the response time from the logs below?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-calculate-in-customized-query-the-response-time-from-the/m-p/622301#M14625</link>
      <description>&lt;P&gt;Hi All.&lt;BR /&gt;I am trying to calculate the response time from the logs below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;11-12-2019 23:34:45, 678 this event will calculate the sign in and sign out of the application, Success,=67, failed=121, |sumsuo=1.0|CompleteTime=100sec&lt;BR /&gt;11-12-2019 23:34:45, 678 this event will calculate the sign in and sign out of the application, Success,=67, failed=121, |sumsuo=1.0|CompleteTime=10sec&lt;BR /&gt;11-12-2019 23:34:45, 678 this event will calculate the sign in and sign out of the application, Success,=67, failed=121, |sumsuo=1.0|CompleteTime=50sec&lt;BR /&gt;11-12-2019 23:34:45, 678 this event will calculate the sign in and sign out of the application, Success,=67, failed=121, |sumsuo=1.0|CompleteTime=40sec&lt;BR /&gt;11-12-2019 23:34:45, 678 this event will calculate the sign in and sign out of the application, Success,=67, failed=121, |sumsuo=1.0|CompleteTime=130sec&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;|tstats count where index=xxxx host=abc OR host=cvb OR host=dgf OR host=ujh sourcetype=xxxx  by PREFIX(completetime=)
|rename completetime= as Time
|timechart span=1d avg(Time) by host
|eval ResTime =round(,Time2)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When i am trying to run this query i am not bale to calculate the average of time because when i am doing PREFIX(completetime=) here sec word is also taking up.&lt;BR /&gt;How can i ignore it.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 13:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-calculate-in-customized-query-the-response-time-from-the/m-p/622301#M14625</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-11-29T13:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Customised query- How to calculate the response time from the logs below?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-calculate-in-customized-query-the-response-time-from-the/m-p/622325#M14626</link>
      <description>&lt;P&gt;Use the tonumber() function to extract only the digits from the Time field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count where index=xxxx host=abc OR host=cvb OR host=dgf OR host=ujh sourcetype=xxxx  by PREFIX(CompleteTime=)
|rename CompleteTime as Time
|eval Time=tonumber(Time)
|timechart span=1d avg(Time) as ResTime by host
|eval ResTime =round(ResTime, 2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 13:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-calculate-in-customized-query-the-response-time-from-the/m-p/622325#M14626</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-29T13:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Customised query- How to calculate the response time from the logs below?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-calculate-in-customized-query-the-response-time-from-the/m-p/622326#M14627</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;when i tried to give tonumber i am still seeing Sec&lt;BR /&gt;|evak Time=tonumber(Time)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 22:26:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-calculate-in-customized-query-the-response-time-from-the/m-p/622326#M14627</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-11-28T22:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Customised query- How to calculate the response time from the logs below?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-calculate-in-customized-query-the-response-time-from-the/m-p/622408#M14642</link>
      <description>&lt;P&gt;In that case, try this alternative that uses &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; to extract only the digits from Time.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|tstats count where index=xxxx host=abc OR host=cvb OR host=dgf OR host=ujh sourcetype=xxxx  by PREFIX(CompleteTime=)
|rename CompleteTime as Time
|rex field=Time "(?&amp;lt;Time&amp;gt;\d+)"
|timechart span=1d avg(Time) as ResTime by host
|eval ResTime =round(ResTime, 2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 13:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-calculate-in-customized-query-the-response-time-from-the/m-p/622408#M14642</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-29T13:24:55Z</dc:date>
    </item>
  </channel>
</rss>

