<?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: Transaction Per Second and Percentiles from Access Log of Traefik in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/544695#M37363</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your inputs. I might be doing something wrong. Below 2 queries that I tried with your inputs with no results. Can you please let me know what you meant by "&lt;SPAN&gt;using this field as _time while indexing"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And yes, the "time" is not buffered, it is the actual request time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--- Queries ---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=myindex sourcetype=access_log RequestAddr=*.domain.com | eval _time=strptime(time,"%FT%T%z") | timechart per_second(count) by RequestAddr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=myindex sourcetype=access_log RequestAddr=*.domain.com | timechart per_second(count) by RequestAddr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Mar 2021 18:32:01 GMT</pubDate>
    <dc:creator>shashinandan</dc:creator>
    <dc:date>2021-03-21T18:32:01Z</dc:date>
    <item>
      <title>Transaction Per Second and Percentiles from Access Log of Traefik</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/544632#M37357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have traefik access log in json format with below values.&lt;/P&gt;&lt;P&gt;--- Value Samples ---&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="key level-1"&gt;&lt;SPAN class="key-name"&gt;Duration&lt;/SPAN&gt;: &lt;SPAN class="t number"&gt;109249593&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ==&amp;gt; [The total time taken (in nanoseconds) by processing the response]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="key-name"&gt;time&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="t string"&gt;2021-03-20T09:30:01-07:00. ==&amp;gt; [The Request Time]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;RequestAddr: example.domain.com. ==&amp;gt; [&lt;SPAN&gt;The HTTP Host header]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;&lt;SPAN&gt;------&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;&lt;SPAN&gt;I am trying to use these 3 key/values to calculate TPS and also percentiles(using the Duration as response time metric).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;&lt;SPAN&gt;I have below query to do TPS as of now.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;&lt;SPAN&gt;index=myindex sourcetype=access_log RequestAddr=*.domain.com&lt;BR /&gt;| eval count=1 | timechart per_second(count) as TPS by RequestAddr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;&lt;SPAN&gt;----&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;&lt;SPAN&gt;I am assuming above query will not provide actual TPS since logs are buffered before written to file and then this is pushed by splunk forwarder.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;&lt;SPAN&gt;Still a noob figuring out splunk.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;&lt;SPAN&gt;Please let me know any ideas to go about calculating TPS and percentiles using the value samples.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t string"&gt;&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 17:42:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/544632#M37357</guid>
      <dc:creator>shashinandan</dc:creator>
      <dc:date>2021-03-20T17:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Per Second and Percentiles from Access Log of Traefik</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/544667#M37360</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232720"&gt;@shashinandan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;time&lt;/STRONG&gt; field in your log file is showing the actual time of request (not being affected by buffering) and using this field as _time while indexing, &lt;STRONG&gt;timechart per_second(count)&lt;/STRONG&gt; should calculate correctly. You don't need eval count=1.&lt;/P&gt;&lt;P&gt;If your time field is buffered there is no way to calculate.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 05:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/544667#M37360</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-21T05:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Per Second and Percentiles from Access Log of Traefik</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/544695#M37363</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your inputs. I might be doing something wrong. Below 2 queries that I tried with your inputs with no results. Can you please let me know what you meant by "&lt;SPAN&gt;using this field as _time while indexing"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And yes, the "time" is not buffered, it is the actual request time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--- Queries ---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=myindex sourcetype=access_log RequestAddr=*.domain.com | eval _time=strptime(time,"%FT%T%z") | timechart per_second(count) by RequestAddr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=myindex sourcetype=access_log RequestAddr=*.domain.com | timechart per_second(count) by RequestAddr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Mar 2021 18:32:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/544695#M37363</guid>
      <dc:creator>shashinandan</dc:creator>
      <dc:date>2021-03-21T18:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Per Second and Percentiles from Access Log of Traefik</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/544855#M37378</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/232720"&gt;@shashinandan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I meant on your monitor input that read these json files use time field as timestamp. Your events will have correct timestamps, you will not need convert time to _time by eval.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your first query should work, could you please post a few events for us to guess the problem?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 03:06:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/544855#M37378</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-23T03:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction Per Second and Percentiles from Access Log of Traefik</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/545024#M37409</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thank you for responding !&lt;/P&gt;&lt;P&gt;Please find below an event sample.&lt;/P&gt;&lt;LI-CODE lang="java"&gt;{"BackendAddr":"10.0.19.45:8080","BackendName":"backend-&amp;lt;servicename&amp;gt;","BackendURL":{"Scheme":"http","Opaque":"","User":null,"Host":"10.0.19.45:8080","Path":"","RawPath":"","ForceQuery":false,"RawQuery":"","Fragment":""},"ClientAddr":"10.255.0.38:47741","ClientHost":"10.255.0.38","ClientPort":"47741","ClientUsername":"-","DownstreamContentSize":100574,"DownstreamStatus":200,"DownstreamStatusLine":"200 OK","Duration":95292255,"FrontendName":"PathPrefix-&amp;lt;servicename&amp;gt;","OriginContentSize":100574,"OriginDuration":95016703,"OriginStatus":200,"OriginStatusLine":"200 OK","Overhead":275552,"RequestAddr":"example.domain.com","RequestContentSize":0,"RequestCount":266290620,"RequestHost":"example.domain.com","RequestLine":"GET /&amp;lt;Request&amp;gt; HTTP/1.1","RequestMethod":"GET","RequestPath":"/&amp;lt;Request&amp;gt;","RequestPort":"-","RequestProtocol":"HTTP/1.1","RetryAttempts":0,"StartLocal":"2021-03-23T19:19:51.901899656-07:00","downstream_Content-Type":"application/json","downstream_Date":"Wed, 24 Mar 2021 02:19:51 GMT","level":"info","msg":"","origin_Content-Type":"application/json","origin_Date":"Wed, 24 Mar 2021 02:19:51 GMT","request_Content-Type":"application/json","request_X-Device-Type":"Handheld with SIM","request_X-Transaction-Id":"OAbYkrBVYFip0fc8azAQg","time":"2021-03-23T19:19:51-07:00"}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have verified that "_time" and "time" had the same value by executing below query. The monitor input is reading the "time" field as timestamp.&lt;/P&gt;&lt;P&gt;"index=myindex sourcetype=access_log&amp;nbsp; | table time _time StartLocal"&lt;/P&gt;&lt;P&gt;Also, as you said, I was able to get the a result using below query.&lt;/P&gt;&lt;P&gt;"index=myindex sourcetype=access_log RequestAddr=*.domain.com | timechart span=1s count as TPS by RequestAddr"&lt;/P&gt;&lt;P&gt;Hoping this is an accurate way to know how much transactions the application is handling per second.&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 02:32:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Transaction-Per-Second-and-Percentiles-from-Access-Log-of/m-p/545024#M37409</guid>
      <dc:creator>shashinandan</dc:creator>
      <dc:date>2021-03-24T02:32:58Z</dc:date>
    </item>
  </channel>
</rss>

