<?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 Plot response time from this log in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Plot-response-time-from-this-log/m-p/500805#M195097</link>
    <description>&lt;P&gt;Hi There, &lt;/P&gt;

&lt;P&gt;Thanks in advance. I am trying to plot a graph with the request time for each request on the y-axis and minutes on the x axis. &lt;/P&gt;

&lt;P&gt;Here is an example log entry. &lt;/P&gt;

&lt;P&gt;10.xx.xx.xx - - [19/May/2020:03:15:46 +0000] "POST /web/Authorization?schema=1.3&amp;amp;form=json&amp;amp;httpError=true&amp;amp;cid=cd65b044-426b-4131-8e92-5f239a31cfc5" 200 92131 1 "Apache-HttpClient/4.3.1 (java 1.5)" "" cd65b044-426b-4131-8e92-5f239a31cfc5 miss "{\"authorize\":{\"operations\":[{\"service\":\"offerDataService\",\"instance\":\"offerDataService-gracenote-prod\",\"endpoint\":\"ContentEntitlement\",\"method\":\"GET\"}]}}"&lt;/P&gt;

&lt;P&gt;Can anyone help me write a Splunk query for it? &lt;/P&gt;

&lt;P&gt;Best,&lt;BR /&gt;
DP &lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2020 04:37:00 GMT</pubDate>
    <dc:creator>parekhdevang</dc:creator>
    <dc:date>2020-05-19T04:37:00Z</dc:date>
    <item>
      <title>Plot response time from this log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Plot-response-time-from-this-log/m-p/500805#M195097</link>
      <description>&lt;P&gt;Hi There, &lt;/P&gt;

&lt;P&gt;Thanks in advance. I am trying to plot a graph with the request time for each request on the y-axis and minutes on the x axis. &lt;/P&gt;

&lt;P&gt;Here is an example log entry. &lt;/P&gt;

&lt;P&gt;10.xx.xx.xx - - [19/May/2020:03:15:46 +0000] "POST /web/Authorization?schema=1.3&amp;amp;form=json&amp;amp;httpError=true&amp;amp;cid=cd65b044-426b-4131-8e92-5f239a31cfc5" 200 92131 1 "Apache-HttpClient/4.3.1 (java 1.5)" "" cd65b044-426b-4131-8e92-5f239a31cfc5 miss "{\"authorize\":{\"operations\":[{\"service\":\"offerDataService\",\"instance\":\"offerDataService-gracenote-prod\",\"endpoint\":\"ContentEntitlement\",\"method\":\"GET\"}]}}"&lt;/P&gt;

&lt;P&gt;Can anyone help me write a Splunk query for it? &lt;/P&gt;

&lt;P&gt;Best,&lt;BR /&gt;
DP &lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 04:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Plot-response-time-from-this-log/m-p/500805#M195097</guid>
      <dc:creator>parekhdevang</dc:creator>
      <dc:date>2020-05-19T04:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Plot response time from this log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Plot-response-time-from-this-log/m-p/500806#M195098</link>
      <description>&lt;P&gt;where is &lt;CODE&gt;request time&lt;/CODE&gt; ?&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;a graph with the request time for each request on the y-axis and minutes on the x axis.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I am not sure the graph, please provide sample graph or pic.&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 00:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Plot-response-time-from-this-log/m-p/500806#M195098</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-24T00:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Plot response time from this log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Plot-response-time-from-this-log/m-p/500807#M195099</link>
      <description>&lt;P&gt;Hi @parekhdevang,&lt;BR /&gt;
if request time is the timestamp of your ResultCode=200 events and you want a graph with the number of events in every minute for each host, you could try someing like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_index ResultCode=200 
| timechart span=1m count BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you haven't already extracted the ResultCode, you can do it in the search using the rex command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_index 
| rex "\"\s+(?&amp;lt;ResultCode&amp;gt;\d+)\s+"
| search ResultCode=200 
| timechart span=1m count BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 24 May 2020 07:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Plot-response-time-from-this-log/m-p/500807#M195099</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-24T07:56:16Z</dc:date>
    </item>
  </channel>
</rss>

