<?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 Splunk learned app should stop learning / too_small / dispatch.evaluate in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-learned-app-should-stop-learning-too-small-dispatch/m-p/231051#M44971</link>
    <description>&lt;P&gt;I defined a new input folder that receives &lt;STRONG&gt;gzipped&lt;/STRONG&gt; server logs from a &lt;STRONG&gt;scp copy job&lt;/STRONG&gt; on our servers.&lt;/P&gt;

&lt;P&gt;inputs.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://F:\ssh_incoming\Logs]
disabled = false
recursive = false
host_regex = pl\-([^_]+)_
index = plserver
sourcetype = syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem is that the props.conf of the learned app grows and grows until dispatching of new searches takes longer and longer until no searches start at all. (Inspect Job shows that &lt;STRONG&gt;dispatch.evaluate&lt;/STRONG&gt; takes more than ten minutes to complete)&lt;/P&gt;

&lt;P&gt;/learned/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[pl-www1_20160303053001_sudo-too_small]
PREFIX_SOURCETYPE = True
SHOULD_LINEMERGE = False
is_valid = True
maxDist = 9999

[pl-www1_20160303053001_system-too_small]
PREFIX_SOURCETYPE = True
SHOULD_LINEMERGE = False
is_valid = True
maxDist = 9999

[pl-www1_20160303060001_crond-too_small]
PREFIX_SOURCETYPE = True
SHOULD_LINEMERGE = False
is_valid = True
maxDist = 9999

[pl-www1_20160303060001_sshd-too_small]
PREFIX_SOURCETYPE = True
SHOULD_LINEMERGE = False
is_valid = True
maxDist = 9999
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So as long as logs keep incoming in that folder, the props.conf grows and grows. I even disabled the "learned" App but that didn't solve the problem. The file keeps growing.  &lt;/P&gt;

&lt;P&gt;I have also tried to set LEARN_SOURCETYPE to false in the props.conf definition for the "syslog" sourcetype. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
CHARSET = latin-1
LEARN_SOURCETYPE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am using Splunk 6.2.2 with Enterprise License. &lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 13:25:36 GMT</pubDate>
    <dc:creator>FRoth</dc:creator>
    <dc:date>2016-03-03T13:25:36Z</dc:date>
    <item>
      <title>Splunk learned app should stop learning / too_small / dispatch.evaluate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-learned-app-should-stop-learning-too-small-dispatch/m-p/231051#M44971</link>
      <description>&lt;P&gt;I defined a new input folder that receives &lt;STRONG&gt;gzipped&lt;/STRONG&gt; server logs from a &lt;STRONG&gt;scp copy job&lt;/STRONG&gt; on our servers.&lt;/P&gt;

&lt;P&gt;inputs.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://F:\ssh_incoming\Logs]
disabled = false
recursive = false
host_regex = pl\-([^_]+)_
index = plserver
sourcetype = syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem is that the props.conf of the learned app grows and grows until dispatching of new searches takes longer and longer until no searches start at all. (Inspect Job shows that &lt;STRONG&gt;dispatch.evaluate&lt;/STRONG&gt; takes more than ten minutes to complete)&lt;/P&gt;

&lt;P&gt;/learned/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[pl-www1_20160303053001_sudo-too_small]
PREFIX_SOURCETYPE = True
SHOULD_LINEMERGE = False
is_valid = True
maxDist = 9999

[pl-www1_20160303053001_system-too_small]
PREFIX_SOURCETYPE = True
SHOULD_LINEMERGE = False
is_valid = True
maxDist = 9999

[pl-www1_20160303060001_crond-too_small]
PREFIX_SOURCETYPE = True
SHOULD_LINEMERGE = False
is_valid = True
maxDist = 9999

[pl-www1_20160303060001_sshd-too_small]
PREFIX_SOURCETYPE = True
SHOULD_LINEMERGE = False
is_valid = True
maxDist = 9999
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So as long as logs keep incoming in that folder, the props.conf grows and grows. I even disabled the "learned" App but that didn't solve the problem. The file keeps growing.  &lt;/P&gt;

&lt;P&gt;I have also tried to set LEARN_SOURCETYPE to false in the props.conf definition for the "syslog" sourcetype. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
CHARSET = latin-1
LEARN_SOURCETYPE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am using Splunk 6.2.2 with Enterprise License. &lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 13:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-learned-app-should-stop-learning-too-small-dispatch/m-p/231051#M44971</guid>
      <dc:creator>FRoth</dc:creator>
      <dc:date>2016-03-03T13:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk learned app should stop learning / too_small / dispatch.evaluate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-learned-app-should-stop-learning-too-small-dispatch/m-p/231052#M44972</link>
      <description>&lt;P&gt;If you want to disable to learned app see this post:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/77271/make-splunk-stop-learning-sourcetypes.html"&gt;https://answers.splunk.com/answers/77271/make-splunk-stop-learning-sourcetypes.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Here is the relevant part of the post:&lt;/P&gt;

&lt;P&gt;If you really would like to disable learning, edit $SPLUNK_HOME/etc/apps/learned/local/app.conf and make sure it says this:&lt;/P&gt;

&lt;P&gt;[install]&lt;BR /&gt;
 state = disabled&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 10:02:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-learned-app-should-stop-learning-too-small-dispatch/m-p/231052#M44972</guid>
      <dc:creator>ncsantucci</dc:creator>
      <dc:date>2016-03-28T10:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk learned app should stop learning / too_small / dispatch.evaluate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-learned-app-should-stop-learning-too-small-dispatch/m-p/231053#M44973</link>
      <description>&lt;P&gt;If all the sourcetypes are marked as {{-too_small}}.&lt;/P&gt;

&lt;P&gt;For small files Splunk is unable to determine the type. This can be controlled by:&lt;/P&gt;

&lt;P&gt;{noformat:title=props.conf}&lt;BR /&gt;
[too_small]&lt;BR /&gt;
PREFIX_SOURCETYPE = false&lt;BR /&gt;
{noformat}&lt;/P&gt;

&lt;P&gt;Could you please try to add a new entry in props.conf with below configuration and restart splunk:&lt;/P&gt;

&lt;P&gt;[too_small]&lt;BR /&gt;
PREFIX_SOURCETYPE = false&lt;/P&gt;

&lt;P&gt;This above configuration will not grow the sourcetypes in learned app and .gz file will also read and  forwarded by the splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-learned-app-should-stop-learning-too-small-dispatch/m-p/231053#M44973</guid>
      <dc:creator>risgupta_splunk</dc:creator>
      <dc:date>2020-09-29T10:46:35Z</dc:date>
    </item>
  </channel>
</rss>

