<?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 filter out those with empty JSON field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-those-with-empty-JSON-field/m-p/619120#M215182</link>
    <description>&lt;P&gt;Try this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull("bar.*")&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 01 Nov 2022 14:38:36 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-11-01T14:38:36Z</dc:date>
    <item>
      <title>How to filter out those with empty JSON field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-those-with-empty-JSON-field/m-p/619100#M215181</link>
      <description>&lt;P&gt;My logs have a JSON field, like this:&lt;/P&gt;
&lt;PRE&gt;{&lt;BR /&gt;&amp;nbsp; "foo": 5,&lt;BR /&gt;&amp;nbsp; "bar": {}&lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;I'd like to filter out logs that have an empty JSON for the "bar" field, like in the above example.&lt;/P&gt;
&lt;P&gt;How do I do that? I tried something like&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;where len('bar{}') &amp;gt; 0&lt;/PRE&gt;
&lt;P&gt;but didn't work.&lt;/P&gt;
&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 14:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-those-with-empty-JSON-field/m-p/619100#M215181</guid>
      <dc:creator>sanggonlee</dc:creator>
      <dc:date>2022-12-12T14:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out those with empty JSON field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-those-with-empty-JSON-field/m-p/619120#M215182</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull("bar.*")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Nov 2022 14:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-those-with-empty-JSON-field/m-p/619120#M215182</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-11-01T14:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out those with empty JSON field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-those-with-empty-JSON-field/m-p/623909#M216906</link>
      <description>&lt;P&gt;Note bar is not an array, therefore bar{} does not exist. &amp;nbsp;In that sample data, bar is null. &amp;nbsp;So, to exclude them,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnotnull(bar)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 21:09:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-those-with-empty-JSON-field/m-p/623909#M216906</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-10T21:09:06Z</dc:date>
    </item>
  </channel>
</rss>

