<?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 search for events that do not contain a field, where that field has a period in its name? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266217#M80046</link>
    <description>&lt;P&gt;I have JSON records.&lt;BR /&gt;
Some contain the field &lt;STRONG&gt;logdata.message&lt;/STRONG&gt;, others contain the field &lt;STRONG&gt;logdata.exception.Message&lt;/STRONG&gt;.&lt;BR /&gt;
I wish to find all the records where logdata.exception.Message does not exist.&lt;/P&gt;

&lt;P&gt;Note that both logdata and logdata.exception are parsed as objects containing fields (strings) or other objects.&lt;/P&gt;

&lt;P&gt;I tried the approach suggested here (&lt;A href="https://answers.splunk.com/answers/59305/how-to-find-records-that-do-not-contain-a-certain-field.html"&gt;https://answers.splunk.com/answers/59305/how-to-find-records-that-do-not-contain-a-certain-field.html&lt;/A&gt;) but the following didn't work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=appdata level="ERROR" NOT 'logdata.exception'=* NOT 'logdata.exception.Message'=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since the fields have periods in their qualified names, I wrapped them in single quotes.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 00:10:04 GMT</pubDate>
    <dc:creator>mdufrasne</dc:creator>
    <dc:date>2016-07-20T00:10:04Z</dc:date>
    <item>
      <title>How to search for events that do not contain a field, where that field has a period in its name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266217#M80046</link>
      <description>&lt;P&gt;I have JSON records.&lt;BR /&gt;
Some contain the field &lt;STRONG&gt;logdata.message&lt;/STRONG&gt;, others contain the field &lt;STRONG&gt;logdata.exception.Message&lt;/STRONG&gt;.&lt;BR /&gt;
I wish to find all the records where logdata.exception.Message does not exist.&lt;/P&gt;

&lt;P&gt;Note that both logdata and logdata.exception are parsed as objects containing fields (strings) or other objects.&lt;/P&gt;

&lt;P&gt;I tried the approach suggested here (&lt;A href="https://answers.splunk.com/answers/59305/how-to-find-records-that-do-not-contain-a-certain-field.html"&gt;https://answers.splunk.com/answers/59305/how-to-find-records-that-do-not-contain-a-certain-field.html&lt;/A&gt;) but the following didn't work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=appdata level="ERROR" NOT 'logdata.exception'=* NOT 'logdata.exception.Message'=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Since the fields have periods in their qualified names, I wrapped them in single quotes.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 00:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266217#M80046</guid>
      <dc:creator>mdufrasne</dc:creator>
      <dc:date>2016-07-20T00:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for events that do not contain a field, where that field has a period in its name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266218#M80047</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=appdata level="ERROR" NOT ('logdata.exception'=* OR 'logdata.exception.Message'=*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jul 2016 01:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266218#M80047</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-20T01:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for events that do not contain a field, where that field has a period in its name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266219#M80048</link>
      <description>&lt;P&gt;no go - I replaced the OR with AND as well. Neither worked. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 01:21:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266219#M80048</guid>
      <dc:creator>mdufrasne</dc:creator>
      <dc:date>2016-07-20T01:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for events that do not contain a field, where that field has a period in its name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266220#M80049</link>
      <description>&lt;P&gt;Does &lt;CODE&gt;index=appdata level="ERROR"&lt;/CODE&gt; return valid data?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 01:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266220#M80049</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-07-20T01:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for events that do not contain a field, where that field has a period in its name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266221#M80050</link>
      <description>&lt;P&gt;Why,if you need events "where logdata.exception.Message does not exist", you used both the conditions?&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe &lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 06:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266221#M80050</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-07-20T06:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for events that do not contain a field, where that field has a period in its name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266222#M80051</link>
      <description>&lt;P&gt;You must use double-quotes, not single-quotes.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=appdata level="ERROR" NOT ("logdata.exception"="*" OR "logdata.exception.Message"="*")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-events-that-do-not-contain-a-field-where-that/m-p/266222#M80051</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-07-20T13:30:39Z</dc:date>
    </item>
  </channel>
</rss>

