<?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 Selecting all non null fields from in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299084#M39149</link>
    <description>&lt;P&gt;I am trying to display only those fields which contain a non null value. What is wrong with this command to achieve my purpose?&lt;/P&gt;

&lt;P&gt;index="test" | fields -isnull(*)&lt;/P&gt;

&lt;P&gt;It simply displays my data as a raw csv record, whereas what I want it to get all those fieldnames which are not "".&lt;/P&gt;</description>
    <pubDate>Sat, 08 Jul 2017 19:59:23 GMT</pubDate>
    <dc:creator>nisha_kapoor</dc:creator>
    <dc:date>2017-07-08T19:59:23Z</dc:date>
    <item>
      <title>Selecting all non null fields from</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299084#M39149</link>
      <description>&lt;P&gt;I am trying to display only those fields which contain a non null value. What is wrong with this command to achieve my purpose?&lt;/P&gt;

&lt;P&gt;index="test" | fields -isnull(*)&lt;/P&gt;

&lt;P&gt;It simply displays my data as a raw csv record, whereas what I want it to get all those fieldnames which are not "".&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 19:59:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299084#M39149</guid>
      <dc:creator>nisha_kapoor</dc:creator>
      <dc:date>2017-07-08T19:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all non null fields from</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299085#M39150</link>
      <description>&lt;P&gt;Do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test" | stats values(*) AS * BY _serial
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am pretty sure that you will be unhappy with the results because I am quite certain that what you asked is not what you are really trying to do.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 21:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299085#M39150</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-07-08T21:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all non null fields from</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299086#M39151</link>
      <description>&lt;P&gt;&lt;CODE&gt;fields&lt;/CODE&gt; doesn't display anything, it just eliminates whatever isn't named.  &lt;/P&gt;

&lt;P&gt;This sequence will kill all variables that have only null values in all records... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rename _time as temptime
| streamstats count as recno
| untable recno field value
| xyseries recno field value
| rename temptime as _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will have to use the &lt;CODE&gt;rename&lt;/CODE&gt; before-and-after sequence on any internal fields starting with &lt;CODE&gt;_&lt;/CODE&gt; that you want to retain.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 21:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299086#M39151</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-07-08T21:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all non null fields from</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299087#M39152</link>
      <description>&lt;P&gt;Thank you for your reply, what I want is a list of fields having at least one non-null value. In other words, I want to eliminate the fields having null values for all records.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2017 03:06:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299087#M39152</guid>
      <dc:creator>nisha_kapoor</dc:creator>
      <dc:date>2017-07-09T03:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting all non null fields from</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299088#M39153</link>
      <description>&lt;P&gt;" I want to eliminate the fields having null values for all records."&lt;/P&gt;

&lt;P&gt;-- If you put a field in table and all the field values are null then the field will anyways be removed from being displayed. Please add some sample data with example of what is being displayed vs what is it that you want.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2017 08:45:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Selecting-all-non-null-fields-from/m-p/299088#M39153</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-09T08:45:35Z</dc:date>
    </item>
  </channel>
</rss>

