<?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 deal with NA values in results in splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-deal-with-NA-values-in-results-in-splunk/m-p/225191#M66403</link>
    <description>&lt;P&gt;You can add a &lt;CODE&gt;where&lt;/CODE&gt; or &lt;CODE&gt;search&lt;/CODE&gt; clause to filter out fields with NA values.  For example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... search output ...| where C!="NA" OR C1!="NA" OR ... and so on 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Nov 2015 22:21:04 GMT</pubDate>
    <dc:creator>gcato</dc:creator>
    <dc:date>2015-11-11T22:21:04Z</dc:date>
    <item>
      <title>how to deal with NA values in results in splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-deal-with-NA-values-in-results-in-splunk/m-p/225189#M66401</link>
      <description>&lt;P&gt;My splunk search is something like this     &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pqr host=xyz* NOT TYPE="*ABCDE*" | fields X, Y |timechart limit=0 span=10m count, avg(X) by Y | r " input = data    . . . calculations . . .  output =mydataframe"  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the results i see in splunk after the search resembles this&lt;BR /&gt;&lt;BR /&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/807i5E7068F1CB8CF233/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
I want to go from above results in above picture  to the ones in the picture below&lt;BR /&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/808i28A782294C48FFAD/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;In R to achieve the data transformation from picture one to picture two, all I do is   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mydataframe&amp;lt;-mydataframe[complete.cases(mydataframe), ] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above does nothing but &lt;EM&gt;a subset on all rows of the original dataframe&lt;/EM&gt;  &lt;EM&gt;ignoring completely all rows that have atleast one NA&lt;/EM&gt; in it , leaving me with just the rows that don't have any NA present in them. &lt;/P&gt;

&lt;P&gt;How do I achieve this transformation from first picture to the second using splunk processing language? &lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 21:54:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-deal-with-NA-values-in-results-in-splunk/m-p/225189#M66401</guid>
      <dc:creator>m_vivek</dc:creator>
      <dc:date>2015-11-11T21:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with NA values in results in splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-deal-with-NA-values-in-results-in-splunk/m-p/225190#M66402</link>
      <description>&lt;P&gt;This can be accomplished with the fillnull command.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Fillnull"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/Fillnull&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 22:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-deal-with-NA-values-in-results-in-splunk/m-p/225190#M66402</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-11-11T22:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with NA values in results in splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-deal-with-NA-values-in-results-in-splunk/m-p/225191#M66403</link>
      <description>&lt;P&gt;You can add a &lt;CODE&gt;where&lt;/CODE&gt; or &lt;CODE&gt;search&lt;/CODE&gt; clause to filter out fields with NA values.  For example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... search output ...| where C!="NA" OR C1!="NA" OR ... and so on 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Nov 2015 22:21:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-deal-with-NA-values-in-results-in-splunk/m-p/225191#M66403</guid>
      <dc:creator>gcato</dc:creator>
      <dc:date>2015-11-11T22:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to deal with NA values in results in splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-deal-with-NA-values-in-results-in-splunk/m-p/225192#M66404</link>
      <description>&lt;P&gt;Hi @m_vivek&lt;/P&gt;

&lt;P&gt;I noticed you upvoted both Answers, but didn't accept either one. If a user has answered your question (any of your questions, not just this one), don't forget to officially accept it by clicking "Accept" directly below the answer. If there is more than one answer, choose the one that best answered your question. Otherwise, the post will just appear as unresolved when other users are searching for solutions to similar issues. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 23:42:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-deal-with-NA-values-in-results-in-splunk/m-p/225192#M66404</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-11-11T23:42:48Z</dc:date>
    </item>
  </channel>
</rss>

