<?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: &amp;quot;No search query provided&amp;quot; when using base search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256011#M189498</link>
    <description>&lt;P&gt;Assuming you're got all the syntax correct, so try adding a table command to the base search, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype="source" | 
         where Type="Profiling" | regex Name ="$Name$" | 
         eval ElapsedTime = ElapsedTime_ms / 1000 / 60 | 
         eval Id = if(IsChild="True", ParentId, ID) | 
         eval Reference = "(".RefSec."-".Name.")-".Id  
| table Reference SectionName ElapsedTime Id...and all other fields to be used in other post process searches
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 21 Mar 2016 16:53:22 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-03-21T16:53:22Z</dc:date>
    <item>
      <title>"No search query provided" when using base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256008#M189495</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have created quite large dashboard and want to add some optimizations to it. I choose to use base search as a starter here. However I could not make it working. Probably I am missing something basic - could anyone point me how to correct this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;form&amp;gt;
  &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="true" autoRun="false"&amp;gt;
    &amp;lt;!-- fields --&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&amp;lt;search id="baseSearch" &amp;gt;
    &amp;lt;query&amp;gt;
      &amp;lt;query&amp;gt;
        sourcetype="source" | 
        where Type="Profiling" | regex Name ="$Name$" | 
        eval ElapsedTime = ElapsedTime_ms / 1000 / 60 | 
        eval Id = if(IsChild="True", ParentId, ID) | 
        eval Reference = "(".RefSec."-".Name.")-".Id        
      &amp;lt;/query&amp;gt;
      &amp;lt;earliest&amp;gt;$field3.earliest$&amp;lt;/earliest&amp;gt;
      &amp;lt;latest&amp;gt;$field3.latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/query&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt; chart sum(ElapsedTime) as TotalTime over Reference by SectionName | addtotals fieldname=OTHER | eval OTHER=2*TotalExecutionTime - OTHER | fields - TotalExecutionTime | sort -OTHER | head 10&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
&amp;lt;!-- rest of the form --&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I am missing here?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 16:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256008#M189495</guid>
      <dc:creator>PanKokos</dc:creator>
      <dc:date>2016-03-21T16:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: "No search query provided" when using base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256009#M189496</link>
      <description>&lt;P&gt;The earliest and latest on base search is using a token field3 which I don't see available under fieldset ? Did you miss adding a timerange picker to the form ?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 16:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256009#M189496</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-21T16:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: "No search query provided" when using base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256010#M189497</link>
      <description>&lt;P&gt;Hi, I have removed the fieldset from sample to reduce XML. Here it is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset submitButton="true" autoRun="false"&amp;gt;
    &amp;lt;input type="text" token="Name" searchWhenChanged="false"&amp;gt;
      &amp;lt;label&amp;gt;Name&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;.*&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="time" token="field3" searchWhenChanged="false"&amp;gt;
      &amp;lt;label&amp;gt;Time range&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-6h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Mar 2016 16:25:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256010#M189497</guid>
      <dc:creator>PanKokos</dc:creator>
      <dc:date>2016-03-21T16:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: "No search query provided" when using base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256011#M189498</link>
      <description>&lt;P&gt;Assuming you're got all the syntax correct, so try adding a table command to the base search, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; sourcetype="source" | 
         where Type="Profiling" | regex Name ="$Name$" | 
         eval ElapsedTime = ElapsedTime_ms / 1000 / 60 | 
         eval Id = if(IsChild="True", ParentId, ID) | 
         eval Reference = "(".RefSec."-".Name.")-".Id  
| table Reference SectionName ElapsedTime Id...and all other fields to be used in other post process searches
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Mar 2016 16:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256011#M189498</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-21T16:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: "No search query provided" when using base search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256012#M189499</link>
      <description>&lt;P&gt;Found out - finally it was a typo in a query tags in base query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     &amp;lt;query&amp;gt;
           &amp;lt;query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Mar 2016 17:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/quot-No-search-query-provided-quot-when-using-base-search/m-p/256012#M189499</guid>
      <dc:creator>PanKokos</dc:creator>
      <dc:date>2016-03-21T17:25:38Z</dc:date>
    </item>
  </channel>
</rss>

