<?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: Post search stucks in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222405#M65411</link>
    <description>&lt;P&gt;Thanks.   The drop down list works after appending "fields" to the base search.  May I know the reason behind?  &lt;/P&gt;

&lt;P&gt;However, post search in panels still not working (just "waiting for data").   e.g. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Time distribution of browser for department $d_name$&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt;
            search deptcode=$d_name$ | rename useragent as http_user_agent | lookup user_agents http_user_agent | timechart count by ua_family usenull=f useother=f
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Again, using full search instead of base+post search works before.    Would you help again?&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2017 11:03:13 GMT</pubDate>
    <dc:creator>stwong</dc:creator>
    <dc:date>2017-01-06T11:03:13Z</dc:date>
    <item>
      <title>Post search stucks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222403#M65409</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I tried to use post search to populate list options:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;search id="baseSearch"&amp;gt;
        &amp;lt;query&amp;gt;
          &amp;lt;![CDATA[index=application host="myhost*" status&amp;lt;400| rex field=uri "\/(?&amp;lt;deptcode&amp;gt;[^\/]+)\/" 
          ]]&amp;gt;
        &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$latest$&amp;lt;/latest&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="time" token="field2"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-7d@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;input type="dropdown" token="d_name" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select a department&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;search base="baseSearch"&amp;gt;
        &amp;lt;query&amp;gt;
          stats count by deptcode
        &amp;lt;/query&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;deptcode&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;deptcode&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, using single search works as expected:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;input type="dropdown" token="d_name" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select a department&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;
          &amp;lt;![CDATA[index=application host="myhost*" status&amp;lt;400| rex field=uri "\/(?&amp;lt;deptcode&amp;gt;[^\/]+)\/" | stats count by deptcode
          ]]&amp;gt;
        &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$latest$&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;deptcode&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;deptcode&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;/input
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Post search in panels in the same form also not working.   Would anyone please help?&lt;BR /&gt;
Sorry for the newbie question.&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;BR /&gt;
Regards,&lt;BR /&gt;
/ST Wong&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 10:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222403#M65409</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2017-01-06T10:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Post search stucks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222404#M65410</link>
      <description>&lt;P&gt;Try specifying the field explicitly in the base search and/or in the sub search. ie , after your base search try adding &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | fields deptcode,other fields&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jan 2017 10:32:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222404#M65410</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2017-01-06T10:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Post search stucks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222405#M65411</link>
      <description>&lt;P&gt;Thanks.   The drop down list works after appending "fields" to the base search.  May I know the reason behind?  &lt;/P&gt;

&lt;P&gt;However, post search in panels still not working (just "waiting for data").   e.g. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Time distribution of browser for department $d_name$&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search base="baseSearch"&amp;gt;
          &amp;lt;query&amp;gt;
            search deptcode=$d_name$ | rename useragent as http_user_agent | lookup user_agents http_user_agent | timechart count by ua_family usenull=f useother=f
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Again, using full search instead of base+post search works before.    Would you help again?&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 11:03:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222405#M65411</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2017-01-06T11:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Post search stucks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222406#M65412</link>
      <description>&lt;P&gt;See the details of search mode here : &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Changethesearchmode"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Changethesearchmode&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The user field extraction might not get effected when it runs in smart/fast mode.&lt;/P&gt;

&lt;P&gt;For your second issue, try the same trick by adding fields at the end of drop down search&lt;/P&gt;

&lt;P&gt;ie : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats count by deptcode|fields deptcode
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If it's not working , click on the search icon on the panel (below) and see what's the final search it's running. From there you will be able to identify&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 11:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222406#M65412</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2017-01-06T11:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Post search stucks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222407#M65413</link>
      <description>&lt;P&gt;Got it.  Passing more fields in base search makes post search work, however, the time range earliest and latest nodes specified in base search can't be passed to post searches.  I also can't specify  or  nodes in post search (gives unknown node error if i specify them in post search).  Probably something else is missed in my code....&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 15:33:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222407#M65413</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2017-01-06T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Post search stucks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222408#M65414</link>
      <description>&lt;P&gt;Sorry that i accidentally added token="xxx" in time picker instead of using default time_tok.  It works after removing the token field.&lt;BR /&gt;
Somes post-process searches can only use default time_tok, right?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:19:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Post-search-stucks/m-p/222408#M65414</guid>
      <dc:creator>stwong</dc:creator>
      <dc:date>2020-09-29T12:19:10Z</dc:date>
    </item>
  </channel>
</rss>

