<?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 Search progress bar disappeared in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-progress-bar-disappeared/m-p/85678#M21887</link>
    <description>&lt;P&gt;I am searching through postfix email logs and trying to put all the revevent logs together for each email.  I am also setting up the search in a view so that our email admin can just type in the search string and find an email.&lt;/P&gt;

&lt;P&gt;The first search I came up with is as follows. This search worked well but was very slow for search of 24 hours or more (we log about 500,000 emails a day).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;title&amp;gt;Number of Messages over Time&amp;lt;/title&amp;gt;
      &amp;lt;searchTemplate&amp;gt;sourcetype=postfix_syslog | transaction keepevicted=true  message_pid | search to=*$Username$* | timechart count by host&amp;lt;/searchTemplate&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.primaryAxisTitle.text"&amp;gt;Timeline&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.secondaryAxisTitle.text"&amp;gt;Messages&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;


  &amp;lt;row&amp;gt;
    &amp;lt;event&amp;gt;
      &amp;lt;title&amp;gt;Message Logs&amp;lt;/title&amp;gt;
      &amp;lt;searchTemplate&amp;gt;sourcetype=postfix_syslog | transaction keepevicted=true  message_pid | search to=*$Username$* OR orig_to=*$Username$*&amp;lt;/searchTemplate&amp;gt;
      &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
      &amp;lt;option name="showPager"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;/event&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I then changed the search to the following and it worked a lot faster but now does not display a progress bar.  This is causing our email admins to keep clicking thinking it has locked up.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;title&amp;gt;Number of Messages over Time&amp;lt;/title&amp;gt;
      &amp;lt;searchTemplate&amp;gt;sourcetype=postfix_syslog [ search sourcetype=postfix_syslog *$Username$* | dedup message_pid | fields message_pid ] | transaction keepevicted=true  fields=message_pid maxspan=3m maxpause=1m | timechart count by host&amp;lt;/searchTemplate&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.primaryAxisTitle.text"&amp;gt;Timeline&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.secondaryAxisTitle.text"&amp;gt;Messages&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;

  &amp;lt;row&amp;gt;
    &amp;lt;event&amp;gt;
      &amp;lt;title&amp;gt;Message Logs&amp;lt;/title&amp;gt;
      &amp;lt;searchTemplate&amp;gt;sourcetype=postfix_syslog [ search sourcetype=postfix_syslog *$Username$* | dedup message_pid | fields message_pid ] | transaction keepevicted=true  fields=message_pid maxspan=3m maxpause=1m&amp;lt;/searchTemplate&amp;gt;
      &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
      &amp;lt;option name="showPager"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;/event&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I get a progress bar back for the last search and why did I loose it?&lt;BR /&gt;
Anyone else working on postfix email logs?&lt;/P&gt;

&lt;P&gt;---- Kirk&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2011 20:56:56 GMT</pubDate>
    <dc:creator>kdavis</dc:creator>
    <dc:date>2011-04-20T20:56:56Z</dc:date>
    <item>
      <title>Search progress bar disappeared</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-progress-bar-disappeared/m-p/85678#M21887</link>
      <description>&lt;P&gt;I am searching through postfix email logs and trying to put all the revevent logs together for each email.  I am also setting up the search in a view so that our email admin can just type in the search string and find an email.&lt;/P&gt;

&lt;P&gt;The first search I came up with is as follows. This search worked well but was very slow for search of 24 hours or more (we log about 500,000 emails a day).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;title&amp;gt;Number of Messages over Time&amp;lt;/title&amp;gt;
      &amp;lt;searchTemplate&amp;gt;sourcetype=postfix_syslog | transaction keepevicted=true  message_pid | search to=*$Username$* | timechart count by host&amp;lt;/searchTemplate&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.primaryAxisTitle.text"&amp;gt;Timeline&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.secondaryAxisTitle.text"&amp;gt;Messages&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;


  &amp;lt;row&amp;gt;
    &amp;lt;event&amp;gt;
      &amp;lt;title&amp;gt;Message Logs&amp;lt;/title&amp;gt;
      &amp;lt;searchTemplate&amp;gt;sourcetype=postfix_syslog | transaction keepevicted=true  message_pid | search to=*$Username$* OR orig_to=*$Username$*&amp;lt;/searchTemplate&amp;gt;
      &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
      &amp;lt;option name="showPager"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;/event&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I then changed the search to the following and it worked a lot faster but now does not display a progress bar.  This is causing our email admins to keep clicking thinking it has locked up.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;title&amp;gt;Number of Messages over Time&amp;lt;/title&amp;gt;
      &amp;lt;searchTemplate&amp;gt;sourcetype=postfix_syslog [ search sourcetype=postfix_syslog *$Username$* | dedup message_pid | fields message_pid ] | transaction keepevicted=true  fields=message_pid maxspan=3m maxpause=1m | timechart count by host&amp;lt;/searchTemplate&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.primaryAxisTitle.text"&amp;gt;Timeline&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.secondaryAxisTitle.text"&amp;gt;Messages&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;

  &amp;lt;row&amp;gt;
    &amp;lt;event&amp;gt;
      &amp;lt;title&amp;gt;Message Logs&amp;lt;/title&amp;gt;
      &amp;lt;searchTemplate&amp;gt;sourcetype=postfix_syslog [ search sourcetype=postfix_syslog *$Username$* | dedup message_pid | fields message_pid ] | transaction keepevicted=true  fields=message_pid maxspan=3m maxpause=1m&amp;lt;/searchTemplate&amp;gt;
      &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
      &amp;lt;option name="showPager"&amp;gt;true&amp;lt;/option&amp;gt;
    &amp;lt;/event&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I get a progress bar back for the last search and why did I loose it?&lt;BR /&gt;
Anyone else working on postfix email logs?&lt;/P&gt;

&lt;P&gt;---- Kirk&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2011 20:56:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-progress-bar-disappeared/m-p/85678#M21887</guid>
      <dc:creator>kdavis</dc:creator>
      <dc:date>2011-04-20T20:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search progress bar disappeared</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-progress-bar-disappeared/m-p/85679#M21888</link>
      <description>&lt;P&gt;Can you tell us more about why you're using transaction at all?  Do the message_pid values repeat a lot?   Seems like "sourcetype=postfix_syslog | dedup message_pid | timechart count by host"  or just "sourcetype=postfix_syslog | timechart dc(message_pid) by host" &lt;EM&gt;might&lt;/EM&gt; work and they'd be a lot simpler...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-progress-bar-disappeared/m-p/85679#M21888</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T09:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search progress bar disappeared</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-progress-bar-disappeared/m-p/85680#M21889</link>
      <description>&lt;P&gt;The progress bar went away because it only shows progress for the main search pipeline.  &lt;/P&gt;

&lt;P&gt;In the rewritten version it's the subsearch that is doing most of the work and the outer search is comparatively zippy so the JobProgressIndicator only appears at the end for a very brief time. &lt;/P&gt;

&lt;P&gt;You can probably confirm this by running them separately in the &lt;CODE&gt;charting&lt;/CODE&gt; view.   ie run &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=postfix_syslog *$Username$*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;vs&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=postfix_syslog (message_pid=&amp;lt;pidA&amp;gt; OR message_pid=&amp;lt;pidB&amp;gt; OR message_pid=&amp;lt;pidC&amp;gt; ...) | transaction keepevicted=true&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;(Its the prefix+postfix search on Username that makes it expensive, because it has to get all of the events off of disk and then scan them in memory. )&lt;/P&gt;

&lt;P&gt;I dont think there's any way to get the main job to reflect the progress of the subsearch job,  and that JobProgressIndicator definitely only responds to the main job. &lt;/P&gt;

&lt;P&gt;One quite different solution you might try: &lt;/P&gt;

&lt;P&gt;a) extract the username field if it isn't already. &lt;/P&gt;

&lt;P&gt;b) create a summary index search that runs every 10mins or so that maps usernames to pids. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=postfix_syslog | stats count by username, message_pid&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;c) then you can search for this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype=postfix_syslog [ index=summary username="*$Username$*" | dedup pid ] | transaction keepevicted=true  fields=message_pid maxspan=3m maxpause=1m | timechart count by host&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Of course, removing the asterisks around Username will probably make this problem go away as well... &lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2011 05:31:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-progress-bar-disappeared/m-p/85680#M21889</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-04-21T05:31:55Z</dc:date>
    </item>
  </channel>
</rss>

