<?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 search on nested fields not returning the right results? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-search-on-nested-fields-not-returning-the-right-results/m-p/642081#M52446</link>
    <description>&lt;P&gt;Are the JSON fields being auto extracted in all cases and what is the length of the JSON data? Best thing to diagnose is to focus on a single event that you can see has errorCode=9001, but is not found in the search and understand why that event is not found.&lt;/P&gt;&lt;P&gt;If can be that the field does not exist (i.e. it is not a Splunk field, as opposed to it not existing in the data) prior to the search.&lt;/P&gt;&lt;P&gt;When you have a single search result that does not work, look at the extracted field table on the left and see what fields Splunk thinks it has.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 00:43:23 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-05-03T00:43:23Z</dc:date>
    <item>
      <title>How to search on nested fields not returning the right results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-search-on-nested-fields-not-returning-the-right-results/m-p/641891#M52421</link>
      <description>&lt;P&gt;The search which is fetching based on one of the nested fields "labels.errorCode" does not return the same results,&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="query returning  the wrong number of results" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25154iE83B76830E1EAA1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="query-returning-incorrect-results.png" alt="query returning  the wrong number of results" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;query returning  the wrong number of results&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This search below returns the right results. But we would like to search based on the field labels.errorCode.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="query returning the right number of results" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25155i49628745DE0AFCA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="query-returning-right-results.png" alt="query returning the right number of results" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;query returning the right number of results&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 14:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-search-on-nested-fields-not-returning-the-right-results/m-p/641891#M52421</guid>
      <dc:creator>rxvichi</dc:creator>
      <dc:date>2023-05-01T14:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to search on nested fields not returning the right results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-search-on-nested-fields-not-returning-the-right-results/m-p/641942#M52428</link>
      <description>&lt;P&gt;Your searches are different - one searches labels.errrorCode=9001 and the other searches with other search strings. Why is 29 results in your first search "wrong" - what is wrong?&lt;/P&gt;&lt;P&gt;Is it returning 29 results that do NOT have labels.errorCode=9001 - you have redacted the data in that, so I can't know&lt;/P&gt;&lt;P&gt;Is 154,465 results the correct number of results which contain labels.errorCode=9001?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 04:11:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-search-on-nested-fields-not-returning-the-right-results/m-p/641942#M52428</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-05-02T04:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to search on nested fields not returning the right results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-search-on-nested-fields-not-returning-the-right-results/m-p/642007#M52432</link>
      <description>&lt;P&gt;Sorry I made it a bit confusing. The first search result does not return the values returned in the second search result even though the second search result has labels.errorCode=9001. The first search does not return all the values it just returns a subset. Also the redacted data is the same in both queries.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 14:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-search-on-nested-fields-not-returning-the-right-results/m-p/642007#M52432</guid>
      <dc:creator>rxvichi</dc:creator>
      <dc:date>2023-05-02T14:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to search on nested fields not returning the right results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-search-on-nested-fields-not-returning-the-right-results/m-p/642081#M52446</link>
      <description>&lt;P&gt;Are the JSON fields being auto extracted in all cases and what is the length of the JSON data? Best thing to diagnose is to focus on a single event that you can see has errorCode=9001, but is not found in the search and understand why that event is not found.&lt;/P&gt;&lt;P&gt;If can be that the field does not exist (i.e. it is not a Splunk field, as opposed to it not existing in the data) prior to the search.&lt;/P&gt;&lt;P&gt;When you have a single search result that does not work, look at the extracted field table on the left and see what fields Splunk thinks it has.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 00:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-search-on-nested-fields-not-returning-the-right-results/m-p/642081#M52446</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-05-03T00:43:23Z</dc:date>
    </item>
  </channel>
</rss>

