<?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: XML Base search is not working in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678235#M55542</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238661"&gt;@av_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you don't have a streming command (as stats or timechart) in the base search, you must specify, at the end of the base search, all the fields that you need to use in the panels, in your case:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main source=xyz
| fields host panel _time&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 18:07:33 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2024-02-21T18:07:33Z</dc:date>
    <item>
      <title>XML Base search is not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678193#M55538</link>
      <description>&lt;P&gt;I'm trying to run a base search but it is throwing me an error. Reason being I have two search tags inside a panel.&amp;nbsp;&lt;BR /&gt;EG:&lt;BR /&gt;&lt;BR /&gt;Base search:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;search id="basesearch"&amp;gt;
&amp;lt;query&amp;gt;index=main source=xyz
&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;$EarliestTime$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$LatestsTime$&amp;lt;/latest&amp;gt;
&amp;lt;/search&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;Panel search:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;chart depends="$abc$"&amp;gt;
&amp;lt;title&amp;gt;Chart1&amp;lt;/title&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;done&amp;gt;
&amp;lt;eval abc="computer1"&amp;lt;/eval&amp;gt;
&amp;lt;/done&amp;gt;
&amp;lt;search base="basesearch"&amp;gt;
&amp;lt;query&amp;gt;
|search host="INFO" OR host="ERROR" panel=$panel1$
|timechart span=$TimeSpan$m count by panel usenull=f useother=f
| eventstats sum("host") as _host&amp;lt;/query&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;earliest&amp;gt;$InputTimeRange.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$InputTimeRange.latest$&amp;lt;/latest&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;collapsed&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.fieldColors"&amp;gt;{"host":0xFFFF00}&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.legend.placement"&amp;gt;bottom&amp;lt;/option&amp;gt;
&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
&amp;lt;/chart&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&lt;STRONG&gt;Warning msg&lt;/STRONG&gt; :&amp;nbsp;&lt;SPAN&gt;Node &amp;lt;search&amp;gt; is not allowed here&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Done section is required in the panel so I cannot remove it.&amp;nbsp;&lt;BR /&gt;Is there a way to use a base search this way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 15:11:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678193#M55538</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2024-02-21T15:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: XML Base search is not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678194#M55539</link>
      <description>&lt;P&gt;Try it like this: (I don't think you can change the time from what was used in the base search, and there should only be one level of &amp;lt;search&amp;gt;&amp;lt;/search&amp;gt;)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;chart depends="$abc$"&amp;gt;
&amp;lt;title&amp;gt;Chart1&amp;lt;/title&amp;gt;
&amp;lt;search base="basesearch"&amp;gt;
&amp;lt;query&amp;gt;
|search host="INFO" OR host="ERROR" panel=$panel1$
|timechart span=$TimeSpan$m count by panel usenull=f useother=f
| eventstats sum("host") as _host&amp;lt;/query&amp;gt;
&amp;lt;done&amp;gt;
&amp;lt;eval abc="computer1"&amp;lt;/eval&amp;gt;
&amp;lt;/done&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;collapsed&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.fieldColors"&amp;gt;{"host":0xFFFF00}&amp;lt;/option&amp;gt;
&amp;lt;option name="charting.legend.placement"&amp;gt;bottom&amp;lt;/option&amp;gt;
&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
&amp;lt;/chart&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Feb 2024 14:56:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678194#M55539</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-02-21T14:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: XML Base search is not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678235#M55542</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/238661"&gt;@av_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;if you don't have a streming command (as stats or timechart) in the base search, you must specify, at the end of the base search, all the fields that you need to use in the panels, in your case:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main source=xyz
| fields host panel _time&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 18:07:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678235#M55542</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-02-21T18:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: XML Base search is not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678926#M55608</link>
      <description>&lt;P&gt;You're right&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;,&amp;nbsp;&lt;SPAN&gt;I can't change the time from what was used in the base search which brings me to my second question. How can I add a drilldown to the same panel with a different timestamp?&lt;BR /&gt;I want to expand the bar chart for a particular time to a drilldown containing more detailed information for that selected time frame.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 05:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678926#M55608</guid>
      <dc:creator>av_</dc:creator>
      <dc:date>2024-02-28T05:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: XML Base search is not working</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678953#M55614</link>
      <description>&lt;P&gt;You have a search element within a search element.&lt;/P&gt;&lt;P&gt;If you see here &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.0/Viz/PanelreferenceforSimplifiedXML#search" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.0/Viz/PanelreferenceforSimplifiedXML#search&lt;/A&gt; search element is not allowed as a child of a search element.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 11:49:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-Base-search-is-not-working/m-p/678953#M55614</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-02-28T11:49:51Z</dc:date>
    </item>
  </channel>
</rss>

