<?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 how to append query ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-append-query/m-p/449368#M127252</link>
    <description>&lt;P&gt;Hi Guys &lt;BR /&gt;
i have 3 queries &lt;/P&gt;

&lt;P&gt;query 1 : identity/phones/retrieve AND "[HTTP-STATUS-CODE]" | stats count as Total&lt;BR /&gt;
query 2 : identity/phones/retrieve AND "[HTTP-STATUS-CODE]=200" | stats count as 200-Success&lt;BR /&gt;
query 3 : identity/phones/retrieve AND "[HTTP-STATUS-CODE]=403" | stats count as 403-Forbidden&lt;/P&gt;

&lt;P&gt;how can i append this 3 queries and i want this to looks like a table with 3 columns&lt;BR /&gt;
Total | 200-Success | 403-Forbidden&lt;/P&gt;

&lt;P&gt;please help on this .. Thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2019 09:59:23 GMT</pubDate>
    <dc:creator>venkat0896</dc:creator>
    <dc:date>2019-06-26T09:59:23Z</dc:date>
    <item>
      <title>how to append query ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-append-query/m-p/449368#M127252</link>
      <description>&lt;P&gt;Hi Guys &lt;BR /&gt;
i have 3 queries &lt;/P&gt;

&lt;P&gt;query 1 : identity/phones/retrieve AND "[HTTP-STATUS-CODE]" | stats count as Total&lt;BR /&gt;
query 2 : identity/phones/retrieve AND "[HTTP-STATUS-CODE]=200" | stats count as 200-Success&lt;BR /&gt;
query 3 : identity/phones/retrieve AND "[HTTP-STATUS-CODE]=403" | stats count as 403-Forbidden&lt;/P&gt;

&lt;P&gt;how can i append this 3 queries and i want this to looks like a table with 3 columns&lt;BR /&gt;
Total | 200-Success | 403-Forbidden&lt;/P&gt;

&lt;P&gt;please help on this .. Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 09:59:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-append-query/m-p/449368#M127252</guid>
      <dc:creator>venkat0896</dc:creator>
      <dc:date>2019-06-26T09:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to append query ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-append-query/m-p/449369#M127253</link>
      <description>&lt;P&gt;@venkat0896 ,&lt;/P&gt;

&lt;P&gt;Try ,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your base search"|stats count as Total,count(eval(HTTP-STATUS-CODE==200)) as 200-Success,count(eval(HTTP-STATUS-CODE=="403")) as 403-Forbidden
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jun 2019 11:45:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-append-query/m-p/449369#M127253</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-06-26T11:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to append query ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-append-query/m-p/449370#M127254</link>
      <description>&lt;P&gt;hi @renjith.nair  i tried it &lt;BR /&gt;
getting this error &lt;/P&gt;

&lt;P&gt;Error in 'stats' command: The eval expression for dynamic field 'eval(HTTP-STATUS-CODE=="403")' is invalid. Error='Typechecking failed. The '==' operator received different types.'&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 12:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-append-query/m-p/449370#M127254</guid>
      <dc:creator>venkat0896</dc:creator>
      <dc:date>2019-06-26T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to append query ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-append-query/m-p/449371#M127255</link>
      <description>&lt;P&gt;@venkat0896 , is it possible to share the stats part of your search? Please check if you have used the status codes as string (with ") and numeric (without ") in two places and if yes, change it to single format&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 12:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-append-query/m-p/449371#M127255</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-06-26T12:28:38Z</dc:date>
    </item>
  </channel>
</rss>

