<?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 How to exclude field with null value? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-field-with-null-value/m-p/478117#M82065</link>
    <description>&lt;P&gt;I have indexed a JSON file and want to remove field which has 'null' value(event 1) but if the same field have any correct value in the next event(2) it should consider that field and extract the result. Please advise.&lt;BR /&gt;Logs as below:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Event1:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
   policy: null
   protocol: null
   reason: null
   severity: low
   sid: xxx
   source_port: null
   src: xx.xx.xx.xx
   success: null
   terminal_source: xx.xx.xx.xx

 }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Event2:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
   policy: Normal
   protocol: 4
   reason: null
   severity: low
   sid: xxx
   source_port: 234
   src: xx.xx.xx.xx
   success: null
   terminal_source: xx.xx.xx.xx

 }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 May 2023 12:26:30 GMT</pubDate>
    <dc:creator>vin02ptl</dc:creator>
    <dc:date>2023-05-23T12:26:30Z</dc:date>
    <item>
      <title>How to exclude field with null value?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-field-with-null-value/m-p/478117#M82065</link>
      <description>&lt;P&gt;I have indexed a JSON file and want to remove field which has 'null' value(event 1) but if the same field have any correct value in the next event(2) it should consider that field and extract the result. Please advise.&lt;BR /&gt;Logs as below:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Event1:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
   policy: null
   protocol: null
   reason: null
   severity: low
   sid: xxx
   source_port: null
   src: xx.xx.xx.xx
   success: null
   terminal_source: xx.xx.xx.xx

 }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;Event2:&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;{
   policy: Normal
   protocol: 4
   reason: null
   severity: low
   sid: xxx
   source_port: 234
   src: xx.xx.xx.xx
   success: null
   terminal_source: xx.xx.xx.xx

 }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 May 2023 12:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-field-with-null-value/m-p/478117#M82065</guid>
      <dc:creator>vin02ptl</dc:creator>
      <dc:date>2023-05-23T12:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude field with null value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-field-with-null-value/m-p/478118#M82066</link>
      <description>&lt;P&gt;If you are using &lt;CODE&gt;INDEXED_EXTRACTIONS = json&lt;/CODE&gt; then you can use &lt;CODE&gt;INGEST_EVAL&lt;/CODE&gt; like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[YourSourcetypeHere]
INGEST_EVAL-policy   = nullif(policy,   "null")
INGEST_EVAL-protocol = nullif(protocol, "null")
INGEST_EVAL-reason   = nullif(reason,   "null")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Nov 2019 16:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-field-with-null-value/m-p/478118#M82066</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-04T16:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude field with null value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-field-with-null-value/m-p/478119#M82067</link>
      <description>&lt;P&gt;I am looking for search time extraction for cim compliance and using kv_mode = json. In that case how to proceed?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 18:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-field-with-null-value/m-p/478119#M82067</guid>
      <dc:creator>vin02ptl</dc:creator>
      <dc:date>2019-11-04T18:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude field with null value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-field-with-null-value/m-p/644207#M109691</link>
      <description>&lt;P&gt;Were you able to fix this ?&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 05:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-exclude-field-with-null-value/m-p/644207#M109691</guid>
      <dc:creator>damode1</dc:creator>
      <dc:date>2023-05-23T05:40:15Z</dc:date>
    </item>
  </channel>
</rss>

