<?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 Merge two search results in one row in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Merge-two-search-results-in-one-row/m-p/364936#M107644</link>
    <description>&lt;P&gt;I have the below events and I want to merge the search results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;20171222.103330 Fr I - 0 Fn=makeRequest Endpoint=https://mydomain.api..net/v1/person/personid tid=e95126db-6184-4405-8c74-2ed978beb320 HttpStatusCode=200 ElapsedTime=55
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to get the following result - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ErrorRate   | tp90
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the below two separate queries. How can I merge both queries - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc "Fn=makeRequest"  HttpStatusCode &amp;gt; 201 AND HttpStatusCode !=404 |timechart bins=1000 count as ErrorRate
index=abc "Fn=makeRequest"  |timechart bins=1000 cont=FALSE  perc90(ElapsedTime) as perc90
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Dec 2017 19:28:56 GMT</pubDate>
    <dc:creator>pankajad</dc:creator>
    <dc:date>2017-12-22T19:28:56Z</dc:date>
    <item>
      <title>Merge two search results in one row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merge-two-search-results-in-one-row/m-p/364936#M107644</link>
      <description>&lt;P&gt;I have the below events and I want to merge the search results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;20171222.103330 Fr I - 0 Fn=makeRequest Endpoint=https://mydomain.api..net/v1/person/personid tid=e95126db-6184-4405-8c74-2ed978beb320 HttpStatusCode=200 ElapsedTime=55
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to get the following result - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ErrorRate   | tp90
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the below two separate queries. How can I merge both queries - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc "Fn=makeRequest"  HttpStatusCode &amp;gt; 201 AND HttpStatusCode !=404 |timechart bins=1000 count as ErrorRate
index=abc "Fn=makeRequest"  |timechart bins=1000 cont=FALSE  perc90(ElapsedTime) as perc90
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Dec 2017 19:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merge-two-search-results-in-one-row/m-p/364936#M107644</guid>
      <dc:creator>pankajad</dc:creator>
      <dc:date>2017-12-22T19:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two search results in one row</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merge-two-search-results-in-one-row/m-p/364937#M107645</link>
      <description>&lt;P&gt;You can use &lt;CODE&gt;eval&lt;/CODE&gt; in statistics commands to help you qualify fields e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc "Fn=makeRequest" 
| timechart bins=1000 count(eval(HttpStatusCode &amp;gt; 201 AND HttpStatusCode !=404)) as ErrorRate perc90(ElapsedTime) as perc90
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Dec 2017 20:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merge-two-search-results-in-one-row/m-p/364937#M107645</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2017-12-22T20:43:49Z</dc:date>
    </item>
  </channel>
</rss>

