<?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 Show only non-zero fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Show-only-non-zero-fields/m-p/295546#M166389</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How can I run a search and only display those columns with non-zero values? For example, I have fields test1, test2, test3, .... test99, in which only test2 and test10 are non-zero. Would be perfect if there is something like this:&lt;BR /&gt;
 | fields test* | where test* &amp;gt; 0&lt;/P&gt;

&lt;P&gt;P.S. To be more specific, this scenario happens when I create and apply a TFIDF model. The system automatically generate a huge # of fields with suffix _tfidf. I would like to run some query and is interested in those non-zero fields only.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 03:43:04 GMT</pubDate>
    <dc:creator>ericchaucl</dc:creator>
    <dc:date>2017-08-21T03:43:04Z</dc:date>
    <item>
      <title>Show only non-zero fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-only-non-zero-fields/m-p/295546#M166389</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How can I run a search and only display those columns with non-zero values? For example, I have fields test1, test2, test3, .... test99, in which only test2 and test10 are non-zero. Would be perfect if there is something like this:&lt;BR /&gt;
 | fields test* | where test* &amp;gt; 0&lt;/P&gt;

&lt;P&gt;P.S. To be more specific, this scenario happens when I create and apply a TFIDF model. The system automatically generate a huge # of fields with suffix _tfidf. I would like to run some query and is interested in those non-zero fields only.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 03:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-only-non-zero-fields/m-p/295546#M166389</guid>
      <dc:creator>ericchaucl</dc:creator>
      <dc:date>2017-08-21T03:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show only non-zero fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-only-non-zero-fields/m-p/295547#M166390</link>
      <description>&lt;P&gt;Hey, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| table test* | transpose | rename column as Test "row 1" as count | where count &amp;gt; 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3no.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 09:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-only-non-zero-fields/m-p/295547#M166390</guid>
      <dc:creator>3no</dc:creator>
      <dc:date>2017-08-21T09:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Show only non-zero fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Show-only-non-zero-fields/m-p/295548#M166391</link>
      <description>&lt;P&gt;It works! Million thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 09:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Show-only-non-zero-fields/m-p/295548#M166391</guid>
      <dc:creator>ericchaucl</dc:creator>
      <dc:date>2017-08-21T09:46:28Z</dc:date>
    </item>
  </channel>
</rss>

