<?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 disable learned sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/disable-learned-sourcetype/m-p/576209#M101827</link>
    <description>&lt;P&gt;I am using Splunk universal forwarder 8.1.1 on a linux server configured as a log aggregator.&amp;nbsp; I have 7 well defined sourcetypes defined on inputs.conf based on log files in the following directories: /var/log/remote/LINUX, /var/log/remote/NETWORK,&amp;nbsp;/var/log/remote/VMWARE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inputs.conf for LINUX directory&lt;/P&gt;&lt;P&gt;[monitor:///var/log/remote/LINUX/*.log&lt;/P&gt;&lt;P&gt;host_regex = LINUX\/(.+)_.+\.log&lt;/P&gt;&lt;P&gt;index=linux-log&lt;/P&gt;&lt;P&gt;sourcetype=linux-messages&lt;/P&gt;&lt;P&gt;disabled = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do a search I see sourcetypes like (in addition to ones defined in inputs.conf)&lt;/P&gt;&lt;P&gt;cron&lt;/P&gt;&lt;P&gt;cron-4&lt;/P&gt;&lt;P&gt;syslog&lt;/P&gt;&lt;P&gt;cisco-4&lt;/P&gt;&lt;P&gt;I traced these back to learned sourcetypes.&amp;nbsp; The ciso-r sourcetype is looking at a file in /var/log/remote.&amp;nbsp; Given the sourcetypes I have defined I would not expect any visibility into that directory.&lt;/P&gt;&lt;P&gt;Is there a way to disable the learned sourcetypes? Or whitelist the ones I want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 15:49:34 GMT</pubDate>
    <dc:creator>ray88</dc:creator>
    <dc:date>2021-11-24T15:49:34Z</dc:date>
    <item>
      <title>disable learned sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/disable-learned-sourcetype/m-p/576209#M101827</link>
      <description>&lt;P&gt;I am using Splunk universal forwarder 8.1.1 on a linux server configured as a log aggregator.&amp;nbsp; I have 7 well defined sourcetypes defined on inputs.conf based on log files in the following directories: /var/log/remote/LINUX, /var/log/remote/NETWORK,&amp;nbsp;/var/log/remote/VMWARE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;inputs.conf for LINUX directory&lt;/P&gt;&lt;P&gt;[monitor:///var/log/remote/LINUX/*.log&lt;/P&gt;&lt;P&gt;host_regex = LINUX\/(.+)_.+\.log&lt;/P&gt;&lt;P&gt;index=linux-log&lt;/P&gt;&lt;P&gt;sourcetype=linux-messages&lt;/P&gt;&lt;P&gt;disabled = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do a search I see sourcetypes like (in addition to ones defined in inputs.conf)&lt;/P&gt;&lt;P&gt;cron&lt;/P&gt;&lt;P&gt;cron-4&lt;/P&gt;&lt;P&gt;syslog&lt;/P&gt;&lt;P&gt;cisco-4&lt;/P&gt;&lt;P&gt;I traced these back to learned sourcetypes.&amp;nbsp; The ciso-r sourcetype is looking at a file in /var/log/remote.&amp;nbsp; Given the sourcetypes I have defined I would not expect any visibility into that directory.&lt;/P&gt;&lt;P&gt;Is there a way to disable the learned sourcetypes? Or whitelist the ones I want?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 15:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/disable-learned-sourcetype/m-p/576209#M101827</guid>
      <dc:creator>ray88</dc:creator>
      <dc:date>2021-11-24T15:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: disable learned sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/disable-learned-sourcetype/m-p/576212#M101828</link>
      <description>&lt;P&gt;Sourcetypes are defined in props.conf, not in inputs.conf.&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;sourcetype=foo&lt;/FONT&gt; setting in inputs.conf just tells Splunk which props.conf stanza to apply to the data from that input.&amp;nbsp; If there is no such stanza in props.conf then it becomes a learned sourcetype (and probably learned incorrectly).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 16:19:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/disable-learned-sourcetype/m-p/576212#M101828</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-24T16:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: disable learned sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/disable-learned-sourcetype/m-p/701412#M116073</link>
      <description>&lt;P&gt;I tried creating a default app.conf file with the stanza:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[install]
state = disabled&lt;/LI-CODE&gt;
&lt;P&gt;but it didn't disable the app.&lt;/P&gt;
&lt;P&gt;Then I removed the app from etc/apps altogether, but it came back.&lt;/P&gt;
&lt;P&gt;We run splunk as user "splunk" so then I removed the app and created a directory etc/apps/learned owned by root with permissions 500 (r-x------) so splunk couldn't recreate it.&amp;nbsp; That worked.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 14:04:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/disable-learned-sourcetype/m-p/701412#M116073</guid>
      <dc:creator>esalesapns2</dc:creator>
      <dc:date>2024-10-09T14:04:12Z</dc:date>
    </item>
  </channel>
</rss>

