<?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 &amp;quot;Count Over&amp;quot; Statement not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252303#M75479</link>
    <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I am using two queries and then want to use the &lt;STRONG&gt;status&lt;/STRONG&gt; from the first query and the &lt;STRONG&gt;DP_Time&lt;/STRONG&gt; from the second query to display a chart.&lt;/P&gt;

&lt;P&gt;I can get the count of both but cant use "by status" or "count over status"  statement.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="np_dpa" "*-api-monitor" PROXYNAME=mpgw_SMARTtrek* EventType="[request]" OR EventType="[error]" | eval status=case(EventType="[error]","Fail",EventType="[request]","Success")  

| append [search index=np_dpa PROXYNAME=mpgw_SMARTtrekTelematicsAPI latency| 
  eval Back_Time = abs(bs_conn_attempt-res_hdr_rec)/1000 | eval Req_Time = abs(req_transmitted-req_hdr_rd)/1000 | eval Resp_Time = abs(res_hdr_rec-res_transmitted)/1000 | eval Total_Time = abs(res_transmitted-req_hdr_rd)/1000 |eval DP_Time=abs(Req_Time  + Resp_Time)]

 |chart avg(DP_Time) count over status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Jan 2016 18:43:09 GMT</pubDate>
    <dc:creator>athorat</dc:creator>
    <dc:date>2016-01-29T18:43:09Z</dc:date>
    <item>
      <title>"Count Over" Statement not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252303#M75479</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I am using two queries and then want to use the &lt;STRONG&gt;status&lt;/STRONG&gt; from the first query and the &lt;STRONG&gt;DP_Time&lt;/STRONG&gt; from the second query to display a chart.&lt;/P&gt;

&lt;P&gt;I can get the count of both but cant use "by status" or "count over status"  statement.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="np_dpa" "*-api-monitor" PROXYNAME=mpgw_SMARTtrek* EventType="[request]" OR EventType="[error]" | eval status=case(EventType="[error]","Fail",EventType="[request]","Success")  

| append [search index=np_dpa PROXYNAME=mpgw_SMARTtrekTelematicsAPI latency| 
  eval Back_Time = abs(bs_conn_attempt-res_hdr_rec)/1000 | eval Req_Time = abs(req_transmitted-req_hdr_rd)/1000 | eval Resp_Time = abs(res_hdr_rec-res_transmitted)/1000 | eval Total_Time = abs(res_transmitted-req_hdr_rd)/1000 |eval DP_Time=abs(Req_Time  + Resp_Time)]

 |chart avg(DP_Time) count over status
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jan 2016 18:43:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252303#M75479</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2016-01-29T18:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: "Count Over" Statement not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252304#M75480</link>
      <description>&lt;P&gt;Although status exists in both sets of results, DP_Time does not. So, when you do a &lt;CODE&gt;stats function(field) by someotherfield&lt;/CODE&gt;, if &lt;CODE&gt;someotherfield&lt;/CODE&gt; does not exist in both sets of results, you will get zero results.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 18:49:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252304#M75480</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2016-01-29T18:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: "Count Over" Statement not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252305#M75481</link>
      <description>&lt;P&gt;instead of append can I join it some how?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 18:57:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252305#M75481</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2016-01-29T18:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: "Count Over" Statement not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252306#M75482</link>
      <description>&lt;P&gt;How are both the result set related? Both status and DP_Time appear to be available in different events, so unless you've a common field correlating them, the graph you're looking is not possible.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 19:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252306#M75482</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-29T19:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: "Count Over" Statement not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252307#M75483</link>
      <description>&lt;P&gt;@somesoni2  We have TID and Proxyname common between both the queries&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 22:03:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-Count-Over-quot-Statement-not-working/m-p/252307#M75483</guid>
      <dc:creator>athorat</dc:creator>
      <dc:date>2016-01-29T22:03:04Z</dc:date>
    </item>
  </channel>
</rss>

