<?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: extracting response status time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452506#M128141</link>
    <description>&lt;P&gt;Assuming trace id is unique for a transaction and is extracted as trace_id, try this query:&lt;/P&gt;

&lt;P&gt;index = foo | stats earliest(_time) as start, latest(_time) as end, values(http.status) as http_status, value(server_ip) as server_ip by trace_id | eval http_response_time = tostring(end - start, "duration")&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:08:23 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-09-30T01:08:23Z</dc:date>
    <item>
      <title>extracting response status time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452503#M128138</link>
      <description>&lt;P&gt;How can i extract the the http_response_time so that i can get the max(HTTP_STATUS_RESPONSE), MIN(HTTP_STATUS_RESPONSE) and median(HTTP_STATUS_RESPONSE). from the following events&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;6/28/19 9:05:26.760 AM INFO 2019-06-28 05:05:26,760 ------- [[------_rrfi.zip].throttling-task.01] LoggerMessageProcessor AFTER: IP_address: ....... API_name: ........ server ip :......... trace id: ------location: en_US {http.status=200, Content-Type=application/json;charset=UTF-8}

6/28/19 4:08:52.952 PM INFO 2019-06-28 12:08:52,952 -------[[-------_rrfi.zip].throttling-task.01] LoggerMessageProcessor  BEFORE: IP_address: null API_name:-------server ip: -----trace id: ------ location: en_US
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452503#M128138</guid>
      <dc:creator>mammefen</dc:creator>
      <dc:date>2020-09-30T01:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: extracting response status time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452504#M128139</link>
      <description>&lt;P&gt;Where is the http_response_time field in those events?&lt;BR /&gt;
Do you want to do the extraction at index time or search time?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:08:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452504#M128139</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-30T01:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: extracting response status time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452505#M128140</link>
      <description>&lt;P&gt;i want to extract the duration of the the response from the beginning to the end event log as "HTTP_STATUS_RESPONSE"  so, i did not extract the http_status_response yet .but i have to substract 9:05:26-4:08:52, to get the duration.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452505#M128140</guid>
      <dc:creator>mammefen</dc:creator>
      <dc:date>2020-09-30T01:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: extracting response status time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452506#M128141</link>
      <description>&lt;P&gt;Assuming trace id is unique for a transaction and is extracted as trace_id, try this query:&lt;/P&gt;

&lt;P&gt;index = foo | stats earliest(_time) as start, latest(_time) as end, values(http.status) as http_status, value(server_ip) as server_ip by trace_id | eval http_response_time = tostring(end - start, "duration")&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452506#M128141</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-30T01:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: extracting response status time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452507#M128142</link>
      <description>&lt;P&gt;Thank you for your best answer . so, i want to create this http_status_time as a field and use it for another search like to get the MIN(http_response_time ) , MAX(http_response_time ) and median(http_response_time ) for each api and for each month? &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extracting-response-status-time/m-p/452507#M128142</guid>
      <dc:creator>mammefen</dc:creator>
      <dc:date>2020-09-30T01:08:26Z</dc:date>
    </item>
  </channel>
</rss>

