<?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: How to get response time from this search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349245#M103392</link>
    <description>&lt;P&gt;I think kamlesh has nailed this for you, with one minor tweak.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=gee_sit 
 | eval responseTime=TransactionSentEndtime - TransactionReceivedStartTime 
 | eval responseTime=round((responseTime/1000),3) 
 | lookup SolutionCenter.csv TargetBasePath OUTPUTNEW APIName 
 | stats avg(responseTime) by APIName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Dec 2017 10:46:51 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2017-12-19T10:46:51Z</dc:date>
    <item>
      <title>How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349239#M103386</link>
      <description>&lt;P&gt;How to get response time from my search?&lt;/P&gt;

&lt;P&gt;APIName is from my inputlookup&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup SolutionCenter.csv | append [search index=gee_sit  |eval responseTime=TransactionSentEndtime - TransactionReceivedStartTime|eval responseTime=round((responseTime/1000),3)|stats avg(responseTime) by TargetBasePath ]|stats avg(responseTime) by TargetBasePath APIName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349239#M103386</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2017-12-19T09:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349240#M103387</link>
      <description>&lt;P&gt;Can you share some event data?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349240#M103387</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-19T09:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349241#M103388</link>
      <description>&lt;P&gt;Hi @karthi2809,&lt;/P&gt;

&lt;P&gt;what is the relationship OR mapping between lookup and search data?? Is that any field in lookup file which can be mapped with TargetBasePath to fetch APIName?.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:41:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349241#M103388</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-12-19T09:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349242#M103389</link>
      <description>&lt;P&gt;yes i mapped with TargetBasePath to fetch APIName&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:44:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349242#M103389</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2017-12-19T09:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349243#M103390</link>
      <description>&lt;P&gt;Then can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=gee_sit 
| eval responseTime=TransactionSentEndtime - TransactionReceivedStartTime 
| eval responseTime=round((responseTime/1000),3) 
| stats avg(responseTime) by TargetBasePath | lookup SolutionCenter.csv TargetBasePath OUTPUT APIName 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Lookup"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 10:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349243#M103390</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-12-19T10:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349244#M103391</link>
      <description>&lt;P&gt;Tue Dec 19 05:30:29 EST 2017Info: Trace: MessageID=66e0fb4b7a00 ; TransactionID=va10p40027-30801-14958502-24 ; URI=/v1/carealerts/message ; Environment=prod ; Proxy=CareAlerts-CORE-v1 ; TransactionReceivedStartTime=1513679429101 ; TransactionReceivedEndtime=1513679429102 ; RequestSentStartTime=1513679429109; RequestSentEndTime=1513679429109 ; ResponseReceivedStartTime=1513679429589 ; ResponseReceivedEndTime=1513679429590 ; TransationSentStartTime=1513679429600 ; TransactionSentEndtime=1513679429602 ; TargetHost=prods.com ; TargetBasePath=/CareManagement/1.0/CareAlertMessageRHI ; TargetCopySuffix=false ; TargetCopyQueryParams=true ; IsError=false ; Status=200 ; ErrorMsg=\x00&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 10:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349244#M103391</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2017-12-19T10:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349245#M103392</link>
      <description>&lt;P&gt;I think kamlesh has nailed this for you, with one minor tweak.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=gee_sit 
 | eval responseTime=TransactionSentEndtime - TransactionReceivedStartTime 
 | eval responseTime=round((responseTime/1000),3) 
 | lookup SolutionCenter.csv TargetBasePath OUTPUTNEW APIName 
 | stats avg(responseTime) by APIName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Dec 2017 10:46:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349245#M103392</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-19T10:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349246#M103393</link>
      <description>&lt;P&gt;One minor tweak. This helps reduce the event count getting to the eval and stats to be ones only with the field from your lookup.  I would avoid the inputlookup with an append of a search as a pattern. Especially in large volume environments.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=gee_sit 
  | lookup SolutionCenter.csv TargetBasePath OUTPUTNEW APIName 
  | where isnotnull(APIName)
  | eval responseTime=TransactionSentEndtime - TransactionReceivedStartTime 
  | eval responseTime=round((responseTime/1000),3)  
  | stats avg(responseTime) by APIName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Dec 2017 18:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349246#M103393</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2017-12-19T18:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349247#M103394</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt;, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/67425"&gt;@starcher&lt;/a&gt;, If &lt;CODE&gt;stats&lt;/CODE&gt; can be performed on &lt;CODE&gt;TargetBasePath&lt;/CODE&gt; and then enriched with &lt;CODE&gt;lookup&lt;/CODE&gt; command, the search will perform better. I think that is the point &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt; has made in his query. Following is the Splunk Docs reference for the same: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup#Optimizing_your_lookup_search" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup#Optimizing_your_lookup_search&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349247#M103394</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T17:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349248#M103395</link>
      <description>&lt;P&gt;great thanks you &lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 05:50:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349248#M103395</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2017-12-20T05:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get response time from this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349249#M103396</link>
      <description>&lt;P&gt;Thanks a lot its working&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 05:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-response-time-from-this-search/m-p/349249#M103396</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2017-12-20T05:51:29Z</dc:date>
    </item>
  </channel>
</rss>

