<?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 all null fields to prevent gaps in my table of results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149982#M42000</link>
    <description>&lt;P&gt;Lets get your search query please.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jun 2015 15:22:50 GMT</pubDate>
    <dc:creator>stephanefotso</dc:creator>
    <dc:date>2015-06-12T15:22:50Z</dc:date>
    <item>
      <title>How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149976#M41994</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;
I have a table with four fields inputted, but the issue is that some are blank in some of the events so it has huge gaps!&lt;BR /&gt;
Is there a way to remove all null fields?&lt;/P&gt;

&lt;P&gt;Thanks. &lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 13:53:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149976#M41994</guid>
      <dc:creator>gracemaher</dc:creator>
      <dc:date>2015-06-12T13:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149977#M41995</link>
      <description>&lt;P&gt;Hello! Here is one option: Just say donot display null events where field=blank. &lt;CODE&gt;...|where field!=" "&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=*|stats count by sourcetype|where  sourcetype!= " "
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149977#M41995</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-12T14:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149978#M41996</link>
      <description>&lt;P&gt;Hey Stephanefotso - this doesnt really seem to do anything for me lol...&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149978#M41996</guid>
      <dc:creator>gracemaher</dc:creator>
      <dc:date>2015-06-12T14:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149979#M41997</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;yoursearch | fillnull value="NULL" | search NOT NULL
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149979#M41997</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2015-06-12T14:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149980#M41998</link>
      <description>&lt;P&gt;Same again, doesnt change anything in the table. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149980#M41998</guid>
      <dc:creator>gracemaher</dc:creator>
      <dc:date>2015-06-12T14:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149981#M41999</link>
      <description>&lt;P&gt;Sorry to hear that. Can you post the search you are using to create the table and some sample data please? &lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149981#M41999</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2015-06-12T14:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149982#M42000</link>
      <description>&lt;P&gt;Lets get your search query please.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 15:22:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149982#M42000</guid>
      <dc:creator>stephanefotso</dc:creator>
      <dc:date>2015-06-12T15:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149983#M42001</link>
      <description>&lt;P&gt;Its ok, thank you for your help. had to do it via props.conf &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 16:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149983#M42001</guid>
      <dc:creator>gracemaher</dc:creator>
      <dc:date>2015-06-12T16:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149984#M42002</link>
      <description>&lt;P&gt;...|where field!=" " is the one that I'm looking for to delete a value that I don't need in a field. But how about if I have multiple values to delete? How do I do that?&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;P&gt;...| where  src!= "N/A" --&amp;gt; removes N/A values&lt;/P&gt;

&lt;P&gt;I also want to remove all internal IP addresses under this field. I would like to filter it out by using 10.* but how do I include that in the syntax? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 02:03:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149984#M42002</guid>
      <dc:creator>fjordz</dc:creator>
      <dc:date>2017-02-08T02:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149985#M42003</link>
      <description>&lt;P&gt;What worked for me was something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourindex sourcetype=yoursourcetype | rex [if you are using rex to extract fields, it goes before fix. If not, you can skip this] | search fieldname1=* OR fieldname2=* OR fieldname3=* OR fieldname4=* | stats [or whatever table you are using]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What's happening here is it searches only field names that have a result (the * does not include nulls), and by using "OR" you make sure that if any result is in any of the four fields, that row stays in.  This fix might not work well for 50 fields, but it is nice for a few.  &lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 21:51:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149985#M42003</guid>
      <dc:creator>rnotch</dc:creator>
      <dc:date>2017-12-18T21:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149986#M42004</link>
      <description>&lt;P&gt;Thanks guys this lead me to the my solution. I added a where clause at the end. Currently we have some issues with the network trying to evaluate if there are peaks when the issues occur with tracert&lt;BR /&gt;
index=main&lt;BR /&gt;
| eval rtt1_ms=trim(RTT1, " ms")&lt;BR /&gt;
| eval rtt2_ms=trim(RTT2, " ms")&lt;BR /&gt;
| eval rtt3_ms=trim(RTT3, " ms")&lt;BR /&gt;
| table timestamp, HopNr, rtt1_ms, rtt2_ms, rtt3_ms, IP | addtotals fieldname=totalDuration rtt*_ms&lt;BR /&gt;
| sort timestamp&lt;BR /&gt;
| fillnull value="NULL"&lt;BR /&gt;
| where HopNr!="NULL"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149986#M42004</guid>
      <dc:creator>MMCC</dc:creator>
      <dc:date>2020-09-29T17:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all null fields to prevent gaps in my table of results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149987#M42005</link>
      <description>&lt;P&gt;This is the correct answer, worked for me. Thanks for explaining about using OR as well.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 07:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-all-null-fields-to-prevent-gaps-in-my-table-of/m-p/149987#M42005</guid>
      <dc:creator>deepak_acalvio</dc:creator>
      <dc:date>2018-02-09T07:48:26Z</dc:date>
    </item>
  </channel>
</rss>

