<?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: Why doesn't my XML base search work? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365963#M23897</link>
    <description>&lt;P&gt;Aren't you missing the pipe at &lt;CODE&gt;&amp;lt;query&amp;gt;stats count by action&amp;lt;/query&amp;gt;&lt;/CODE&gt;?, meaning something like &lt;CODE&gt;&amp;lt;query&amp;gt;| stats count by action&amp;lt;/query&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Dec 2017 15:08:22 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2017-12-26T15:08:22Z</dc:date>
    <item>
      <title>Why doesn't my XML base search work?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365962#M23896</link>
      <description>&lt;P&gt;I am playing with my base search and wondering why this is not working for me. My XML is as below. Pretty simple one huh? &lt;/P&gt;

&lt;P&gt;So base search is just index=xyz for last 60 minutes. And the data has a field called action. I want timechart on that action. &lt;BR /&gt;
For result it just shows timechart on just action (NULL) and not all. &lt;/P&gt;

&lt;P&gt;If I open the same search in another window, I am getting proper result. Why such behavior? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;search id="basesearch"&amp;gt;
    &amp;lt;query&amp;gt; index=xyz
     &amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;-60m&amp;lt;/earliest&amp;gt;
       &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;  
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search base="basesearch"&amp;gt;
          &amp;lt;query&amp;gt;stats count by action&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: If I run stats count instead of timechart then it show No Result found but the same query works well in search. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 12:35:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365962#M23896</guid>
      <dc:creator>varad_joshi</dc:creator>
      <dc:date>2017-12-26T12:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my XML base search work?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365963#M23897</link>
      <description>&lt;P&gt;Aren't you missing the pipe at &lt;CODE&gt;&amp;lt;query&amp;gt;stats count by action&amp;lt;/query&amp;gt;&lt;/CODE&gt;?, meaning something like &lt;CODE&gt;&amp;lt;query&amp;gt;| stats count by action&amp;lt;/query&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 15:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365963#M23897</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-12-26T15:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my XML base search work?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365964#M23898</link>
      <description>&lt;P&gt;@varad_joshi, you can try to return specific fields or try &lt;CODE&gt;| fields *&lt;/CODE&gt; in your base search and then see whether your post-process query picks it up or not. However, you should refer to &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/Savedsearches#Best_practices"&gt;Post Processing Best Practices&lt;/A&gt; that the base search should have a transforming command and you must not try to pass on raw events through the base search (in such cases you might be better off running separate searches instead of post processing).&lt;/P&gt;

&lt;P&gt;Check out examples on how you should ideally perform post processing (multiple and multi-level)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;search id="basesearch"&amp;gt;
     &amp;lt;query&amp;gt; index=xyz | fields action
      &amp;lt;/query&amp;gt;
       &amp;lt;earliest&amp;gt;-60m&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;  
   &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Dec 2017 17:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365964#M23898</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-26T17:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my XML base search work?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365965#M23899</link>
      <description>&lt;P&gt;@ddrillic, I don't think pipe is mandatory for post process searches.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 20:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365965#M23899</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-26T20:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my XML base search work?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365966#M23900</link>
      <description>&lt;P&gt;Fair enough - thank you @niketnilay.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 22:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365966#M23900</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-12-26T22:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why doesn't my XML base search work?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365967#M23901</link>
      <description>&lt;P&gt;Thanks Niket.&lt;BR /&gt;
Yes I figured that later once I posted the question. &lt;/P&gt;

&lt;P&gt;Thanks for your answer. &lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 09:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-doesn-t-my-XML-base-search-work/m-p/365967#M23901</guid>
      <dc:creator>varad_joshi</dc:creator>
      <dc:date>2017-12-28T09:11:35Z</dc:date>
    </item>
  </channel>
</rss>

