<?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 the zero valued details also in stats table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538628#M152293</link>
    <description>&lt;P&gt;Using &lt;STRONG&gt;sort&lt;/STRONG&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort Total&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/SearchReference/Sort&amp;nbsp;" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/SearchReference/Sort&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 14:53:00 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2021-02-04T14:53:00Z</dc:date>
    <item>
      <title>how to get the zero valued details also in stats table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538489#M152238</link>
      <description>&lt;P&gt;Hi team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I prepared a stats query and it is working fine. But I need to know the Application names which are not having the transactions.&amp;nbsp; Below is the query that I was prepared.&amp;nbsp;&lt;/P&gt;&lt;P&gt;index="index1" ApplicationName="app1" OR ApplicationName="app2" OR ApplicationName="app3" OR ApplicationName="app4" OR ApplicationName="app5" OR ApplicationName="app6" OR ApplicationName="app7" OR ApplicationName="app8" OR ApplicationName="app9" | chart count(ApplicationName) over ApplicationName by Status |addtotals&lt;/P&gt;&lt;P&gt;From the above query I am getting the results as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ApplicationName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Success&amp;nbsp; &amp;nbsp; &amp;nbsp; Failed&amp;nbsp; &amp;nbsp; &amp;nbsp;Total&lt;BR /&gt;app2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;BR /&gt;app5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;BR /&gt;&lt;BR /&gt;Now I need to enhance the above query to get the results like below:&lt;/P&gt;&lt;P&gt;ApplicationName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Success&amp;nbsp; &amp;nbsp; &amp;nbsp; Failed&amp;nbsp; &amp;nbsp; &amp;nbsp;Total&lt;BR /&gt;app1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;app2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;BR /&gt;app3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;app4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;BR /&gt;app5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;BR /&gt;app6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp;&lt;BR /&gt;app7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;BR /&gt;&lt;BR /&gt;can anyone help me on this, thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 16:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538489#M152238</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2021-02-03T16:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the zero valued details also in stats table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538501#M152239</link>
      <description>&lt;P&gt;Whats excatly the issue here, SPL not showing the results for other applications? Also, if you have only 9 apps you can use this much cleaner SPL:&amp;nbsp;index="index1" ApplicationName=app* | chart count(ApplicationName) over ApplicationName by Status |addtotals, alternatively use regex to filter it down.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2021 17:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538501#M152239</guid>
      <dc:creator>me74fhfd</dc:creator>
      <dc:date>2021-02-03T17:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the zero valued details also in stats table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538570#M152272</link>
      <description>&lt;P&gt;The requirement is to show us the table if Application has the 'Success' or 'Failed' log count.&amp;nbsp; Also if one application is not logging then it needs to show 0,0 in 'Success' and 'Failed' columns.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 08:51:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538570#M152272</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2021-02-04T08:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the zero valued details also in stats table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538591#M152281</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225991"&gt;@rkishoreqa&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you don't have data for some apps in the index then you need to create it. Check this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="index1" ApplicationName IN (app1,app2,app3,app4,app5,app6,app7,app8,app9) 
| chart count(ApplicationName) over ApplicationName by Status 
| addtotals
| append 
    [| makeresults 
    | eval ApplicationName=split("app1,app2,app3,app4,app5,app6,app7,app8,app9", ",") 
    | mvexpand ApplicationName 
    | fields - _time ] 
| fillnull value=0 
| stats max(*) as * by ApplicationName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 11:41:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538591#M152281</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-04T11:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the zero valued details also in stats table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538624#M152291</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;: Excellent, it is working as expected. How can I sort the 'Total' column.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 14:46:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538624#M152291</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2021-02-04T14:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the zero valued details also in stats table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538628#M152293</link>
      <description>&lt;P&gt;Using &lt;STRONG&gt;sort&lt;/STRONG&gt; command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| sort Total&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.1/SearchReference/Sort&amp;nbsp;" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.1/SearchReference/Sort&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 14:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/538628#M152293</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-04T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the zero valued details also in stats table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/540499#M152917</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp; : I&amp;nbsp; used the below query, but the counts are not matching.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="index1" ApplicationName IN (app1,app2,app3,app4,app5,app6,app7,app8,app9)&lt;BR /&gt;| chart count(ApplicationName) over ApplicationName by Status&lt;BR /&gt;| addtotals&lt;BR /&gt;| append&lt;BR /&gt;[| makeresults&lt;BR /&gt;| eval ApplicationName=split("app1,app2,app3,app4,app5,app6,app7,app8,app9", ",")&lt;BR /&gt;| mvexpand ApplicationName&lt;BR /&gt;| fields - _time ]&lt;BR /&gt;| fillnull value=0&lt;BR /&gt;| stats max(*) as * by ApplicationName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the query as below, here some applications are like appname and some like appname.application.&amp;nbsp; &amp;nbsp;So I added app1*,app2*,....&amp;nbsp;&lt;BR /&gt;Now the counts are perfect and getting the duplicate application names.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;index="index1" ApplicationName IN (app1*,app2*,app3*,app4*,app5*,app6*,app7*,app8*,app9*)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;| chart count(ApplicationName) over ApplicationName by Status&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;| addtotals&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;| append&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[| makeresults&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;| eval ApplicationName=split("app1,app2,app3,app4,app5,app6,app7,app8,app9", ",")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;| mvexpand ApplicationName&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;| fields - _time ]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;| fillnull value=0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;| stats max(*) as * by ApplicationName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can you please help me on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2021 09:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/540499#M152917</guid>
      <dc:creator>rkishoreqa</dc:creator>
      <dc:date>2021-02-19T09:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the zero valued details also in stats table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/540761#M153038</link>
      <description>&lt;P&gt;Can you provide some data and explain what is wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 04:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-get-the-zero-valued-details-also-in-stats-table/m-p/540761#M153038</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-22T04:50:03Z</dc:date>
    </item>
  </channel>
</rss>

