<?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: Base Search + Query only shows data from base search in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Any-ideas-why-the-base-search-and-table-query-are-not-executed/m-p/603075#M49545</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Giuseppe,&lt;BR /&gt;Thanks.&amp;nbsp; Of all the times I have used a base search, I had never run into this issue or never realised it was required.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You learn something new every day !&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 20:10:23 GMT</pubDate>
    <dc:creator>bdunstan</dc:creator>
    <dc:date>2022-06-23T20:10:23Z</dc:date>
    <item>
      <title>Any ideas why the base search and table query are not executed and only the base_search part is executed?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Any-ideas-why-the-base-search-and-table-query-are-not-executed/m-p/602912#M49512</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;First time I have ever seen this, but curious if its just me.&lt;/P&gt;
&lt;P&gt;I have a search defined as:&lt;BR /&gt;&amp;lt;search id="device_base_index"&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;&lt;BR /&gt;index=oi sourcetype=device earliest=-30d@d latest=+2d@d&lt;BR /&gt;&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&lt;BR /&gt;And a table as:&lt;BR /&gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Data Readiness&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;search base="device_base_index"&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;fields deviceId inventoryStatus configStatus&lt;BR /&gt;| eval ic=configStatus+"::"+inventoryStatus&lt;BR /&gt;| makemv delim="::" ic&lt;BR /&gt;| mvexpand ic&lt;BR /&gt;| streamstats count by deviceId&lt;BR /&gt;| eval status=if(count = 1, "config", "inventory")&lt;BR /&gt;| fields deviceId status ic&lt;BR /&gt;| chart count over status by ic&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;
&lt;P&gt;The dashboard only shows the results from the base_search and doesnt include the results as if it was passed through the&amp;nbsp; the table part of the query.&amp;nbsp; When I click on the magnifying glass, it loads up the full search - so I know the query and base search are attached at some point.&lt;BR /&gt;&lt;BR /&gt;The other strange thing is when I look at the log, it only shows the base search:&lt;BR /&gt;Job Details Dashboard OptimizedSearch:&lt;BR /&gt;&lt;SPAN&gt;| search (earliest=-30d@d index=oi latest=+2d@d sourcetype=device)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;But in the search.log it does see both parts of the full query:&lt;/P&gt;
&lt;PRE&gt;Expanded index search = (index=oi sourcetype=device _time&amp;gt;=1653314400.000 _time&amp;lt;1656079200.000)
base lispy: [ AND index::oi sourcetype::device ]&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;But then it sees the other part of the query:&lt;/P&gt;
&lt;PRE&gt;PARSING: postprocess "fields deviceId inventoryStatus configStatus etc...&lt;/PRE&gt;
&lt;P&gt;search.log contains no ERROR messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I add the query to the table and dont use the base-search it all runs fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any Ideas why the base search and table query are not executed and only the base_search part is executed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers&lt;BR /&gt;-brett&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 19:13:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Any-ideas-why-the-base-search-and-table-query-are-not-executed/m-p/602912#M49512</guid>
      <dc:creator>bdunstan</dc:creator>
      <dc:date>2022-06-23T19:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Base Search + Query only shows data from base search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Any-ideas-why-the-base-search-and-table-query-are-not-executed/m-p/602923#M49515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/175740"&gt;@bdunstan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you don't use a streaming command in the base search, you need to list all the fields that you want to use in the panels using the field, command.&lt;/P&gt;&lt;P&gt;In other words, at the end of the base search you have to add the above command and you can also remove from the panel&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fields deviceId inventoryStatus configStatus&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 06:39:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Any-ideas-why-the-base-search-and-table-query-are-not-executed/m-p/602923#M49515</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-23T06:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Base Search + Query only shows data from base search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Any-ideas-why-the-base-search-and-table-query-are-not-executed/m-p/603075#M49545</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Giuseppe,&lt;BR /&gt;Thanks.&amp;nbsp; Of all the times I have used a base search, I had never run into this issue or never realised it was required.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You learn something new every day !&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 20:10:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Any-ideas-why-the-base-search-and-table-query-are-not-executed/m-p/603075#M49545</guid>
      <dc:creator>bdunstan</dc:creator>
      <dc:date>2022-06-23T20:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Base Search + Query only shows data from base search</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Any-ideas-why-the-base-search-and-table-query-are-not-executed/m-p/603112#M49548</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/175740"&gt;@bdunstan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 06:33:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Any-ideas-why-the-base-search-and-table-query-are-not-executed/m-p/603112#M49548</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-06-24T06:33:50Z</dc:date>
    </item>
  </channel>
</rss>

