<?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 specify a particular aggregate value in query for Single Value Visualization Chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414442#M119408</link>
    <description>&lt;P&gt;hi @dkeck! i appended that to the end of the query but it's only displaying "1"&lt;/P&gt;</description>
    <pubDate>Sat, 19 Jan 2019 19:45:33 GMT</pubDate>
    <dc:creator>jaj</dc:creator>
    <dc:date>2019-01-19T19:45:33Z</dc:date>
    <item>
      <title>How to specify a particular aggregate value in query for Single Value Visualization Chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414440#M119406</link>
      <description>&lt;P&gt;how do i specify a particular value to be displayed in single value visualization chart? i only want the totalCount (success+errors) to display as the single value in the chart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nonprod_applogs source="*test.log*" ("purchase success")  OR ("purchase failed") | 
dedup requestMarker | 
stats count(eval(searchmatch("purchase success"))) as successCount 
      count(eval(searchmatch("purchase failed"))) as errorCount |
eval totalCount = successCount + errorCount
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Jan 2019 19:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414440#M119406</guid>
      <dc:creator>jaj</dc:creator>
      <dc:date>2019-01-19T19:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a particular aggregate value in query for Single Value Visualization Chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414441#M119407</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;I want to rewrite my previous answer:&lt;/P&gt;

&lt;P&gt;try this. either add to your XML code on your dashboard  the option &lt;CODE&gt;field&lt;/CODE&gt; have a look at the link under "single value"&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Viz/PanelreferenceforSimplifiedXML#single_value"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Viz/PanelreferenceforSimplifiedXML#single_value&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;or use the SPL command &lt;CODE&gt;| fields totalCount&lt;/CODE&gt; within your single value search on the dashboard&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jan 2019 19:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414441#M119407</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-19T19:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a particular aggregate value in query for Single Value Visualization Chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414442#M119408</link>
      <description>&lt;P&gt;hi @dkeck! i appended that to the end of the query but it's only displaying "1"&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jan 2019 19:45:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414442#M119408</guid>
      <dc:creator>jaj</dc:creator>
      <dc:date>2019-01-19T19:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a particular aggregate value in query for Single Value Visualization Chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414443#M119409</link>
      <description>&lt;P&gt;updated my answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jan 2019 19:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414443#M119409</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-19T19:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a particular aggregate value in query for Single Value Visualization Chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414444#M119410</link>
      <description>&lt;P&gt;@jaj why not try just &lt;CODE&gt;| stats count as totalCount&lt;/CODE&gt;? You have already filtered the required events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nonprod_applogs source="*test.log*" ("purchase success")  OR ("purchase failed") 
| dedup requestMarker
| stats count as totalCount
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Jan 2019 20:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414444#M119410</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-19T20:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a particular aggregate value in query for Single Value Visualization Chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414445#M119411</link>
      <description>&lt;P&gt;@niketnilay dang yes very true for totalCount thank you :bow:&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jan 2019 20:21:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414445#M119411</guid>
      <dc:creator>jaj</dc:creator>
      <dc:date>2019-01-19T20:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to specify a particular aggregate value in query for Single Value Visualization Chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414446#M119412</link>
      <description>&lt;P&gt;@dkeck cool thanks for the amended response!  :thumbsup:&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jan 2019 20:22:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-specify-a-particular-aggregate-value-in-query-for-Single/m-p/414446#M119412</guid>
      <dc:creator>jaj</dc:creator>
      <dc:date>2019-01-19T20:22:38Z</dc:date>
    </item>
  </channel>
</rss>

