<?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 remove null entries from chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300717#M90535</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;index=*&lt;BR /&gt;&lt;BR /&gt;
     | table  host, speed, connection_type&lt;BR /&gt;
     | where isnotnull(connection_type)&lt;BR /&gt;
     | chart eval(round(avg(speed),2)) OVER host by connection_type&lt;/P&gt;

&lt;P&gt;Also, you could fill them with a null value like "0"or "-" using fillnull&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fillnull" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fillnull&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 18:50:58 GMT</pubDate>
    <dc:creator>chaker</dc:creator>
    <dc:date>2020-09-29T18:50:58Z</dc:date>
    <item>
      <title>How to remove null entries from chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300716#M90534</link>
      <description>&lt;P&gt;hi to all, &lt;/P&gt;

&lt;P&gt;I have a query that produces a chart of hosts, speeds and connection types, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*  
| table  host, speed, connection_type
| chart eval(round(avg(speed),2)) OVER host by connection_type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where my events show that connection_type can be either: T1, T2 or T3&lt;/P&gt;

&lt;P&gt;However, I am looking someway to tag (found_all ) or remove rows that don't have all the categories. Is that possible?  &lt;/P&gt;

&lt;P&gt;my objective is :&lt;BR /&gt;
1.  identify that host4 and host5 don't have all the connection types (remove them from the table if possible) and do an general average for (host1,2,3,6,7)&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4658i5278B1D74C61848E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 23:00:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300716#M90534</guid>
      <dc:creator>chavarfa</dc:creator>
      <dc:date>2018-04-02T23:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove null entries from chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300717#M90535</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;P&gt;index=*&lt;BR /&gt;&lt;BR /&gt;
     | table  host, speed, connection_type&lt;BR /&gt;
     | where isnotnull(connection_type)&lt;BR /&gt;
     | chart eval(round(avg(speed),2)) OVER host by connection_type&lt;/P&gt;

&lt;P&gt;Also, you could fill them with a null value like "0"or "-" using fillnull&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fillnull" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Fillnull&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:50:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300717#M90535</guid>
      <dc:creator>chaker</dc:creator>
      <dc:date>2020-09-29T18:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove null entries from chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300718#M90536</link>
      <description>&lt;P&gt;hey, try this run anywhere search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval host="host1",T1=null(),T2="1",T3="2" | append [| makeresults | eval host="host1",T1="2",T2="4",T3="5"]| append [| makeresults | eval host="host1",T1="2",T2=null(),T3="5"]| append [| makeresults | eval host="host1",T1=null(),T2=null(),T3="6"]| eval found_all=if(isnull(T1) OR isnull(T2) OR isnull(T3),"No","Yes")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your environment, you should try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* 
| table host, speed, connection_type 
| chart eval(round(avg(speed),2)) OVER host by connection_type 
| eval found_all=if(isnull(T1) OR isnull(T2) OR isnull(T3),"No","Yes")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 11:16:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300718#M90536</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-04-03T11:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove null entries from chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300719#M90537</link>
      <description>&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 15:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300719#M90537</guid>
      <dc:creator>chavarfa</dc:creator>
      <dc:date>2018-04-03T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove null entries from chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300720#M90538</link>
      <description>&lt;P&gt;Thanks for your help, however I never capture events  connection_type as Null,  since they are T1 , T2 or T3.   The nulls are seen after the chart is created.  &lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 15:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-null-entries-from-chart/m-p/300720#M90538</guid>
      <dc:creator>chavarfa</dc:creator>
      <dc:date>2018-04-03T15:16:22Z</dc:date>
    </item>
  </channel>
</rss>

