<?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: remove fields with zero value in chart command in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-remove-fields-with-zero-value-in-chart-command/m-p/607615#M13493</link>
    <description>&lt;P&gt;Have you tried adding &lt;FONT face="courier new,courier"&gt;| where count &amp;gt; 0&lt;/FONT&gt; to the end of the query?&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jul 2022 16:41:40 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-07-30T16:41:40Z</dc:date>
    <item>
      <title>How to remove fields with zero value in chart command?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-remove-fields-with-zero-value-in-chart-command/m-p/607603#M13492</link>
      <description>&lt;P&gt;Hello everybody&amp;nbsp;&lt;BR /&gt;my query :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=logarithm SrcAddr="192.168.148.1"
|eval flag=case(DestAddr="192.168.148.7" OR DestAddr="192.168.148.8" OR DestAddr="192.168.148.24" ,"LAN 1",DestAddr="192.168.148.21" OR DestAddr="192.168.148.36" OR DestAddr="192.168.148.37" ,"LAN 4" , DestAddr="192.168.148.33" OR DestAddr="192.168.148.34" OR DestAddr="192.168.148.35","LAN 5")
|chart count over flag by DestAddr useother=f usenull=f&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;and in trellis mode there are all DestAddrs for each flag! (as we can see in picture)&lt;BR /&gt;but I want not to show DestAddrs with 0 values in every chart&amp;nbsp;&lt;BR /&gt;by "LAN 1" just show&amp;nbsp;"192.168.148.7" or&amp;nbsp; "192.168.148.8"&amp;nbsp; or "192.168.148.24"&lt;BR /&gt;by "LAN 4" just show&amp;nbsp;"192.168.148.21" or&amp;nbsp; "192.168.148.36"&amp;nbsp; or "192.168.148.37"&lt;BR /&gt;by "LAN 5" just show&amp;nbsp;"192.168.148.33" or&amp;nbsp; "192.168.148.34"&amp;nbsp; or "192.168.148.35&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="question.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20757i17C1BC635108376E/image-size/large?v=v2&amp;amp;px=999" role="button" title="question.png" alt="question.png" /&gt;&lt;/span&gt;"&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 22:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-remove-fields-with-zero-value-in-chart-command/m-p/607603#M13492</guid>
      <dc:creator>marysan</dc:creator>
      <dc:date>2022-07-30T22:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: remove fields with zero value in chart command</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-remove-fields-with-zero-value-in-chart-command/m-p/607615#M13493</link>
      <description>&lt;P&gt;Have you tried adding &lt;FONT face="courier new,courier"&gt;| where count &amp;gt; 0&lt;/FONT&gt; to the end of the query?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 16:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-remove-fields-with-zero-value-in-chart-command/m-p/607615#M13493</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-30T16:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: remove fields with zero value in chart command</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-remove-fields-with-zero-value-in-chart-command/m-p/607636#M13495</link>
      <description>&lt;P&gt;yes&lt;BR /&gt;it doesn't work . shows nothing !&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2022 08:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-remove-fields-with-zero-value-in-chart-command/m-p/607636#M13495</guid>
      <dc:creator>marysan</dc:creator>
      <dc:date>2022-07-31T08:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove fields with zero value in chart command?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-remove-fields-with-zero-value-in-chart-command/m-p/607641#M13496</link>
      <description>&lt;P&gt;this problem was resolved by using&amp;nbsp;|stats count as count by flag, DestAddr&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2022 09:50:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-remove-fields-with-zero-value-in-chart-command/m-p/607641#M13496</guid>
      <dc:creator>marysan</dc:creator>
      <dc:date>2022-07-31T09:50:48Z</dc:date>
    </item>
  </channel>
</rss>

