<?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: Shellscript monitoring / too_small sourcetype problem in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28149#M4791</link>
    <description>&lt;P&gt;Your stanza [shellscript] says "only apply the following transform to inputs that are ALREADY assigned the sourcetype of shellscript"&lt;/P&gt;

&lt;P&gt;If you said [*] then it would apply the transformation to inputs from ALL sourcetypes, on a line-by-line basis.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2011 23:03:00 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2011-12-09T23:03:00Z</dc:date>
    <item>
      <title>Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28139#M4781</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I would like to use Splunk to index logfiles of different kinds and to provide proper file change monitoring using the fschange stanzas.&lt;/P&gt;

&lt;P&gt;Now as soon as I try to monitor small shellscripts of various names (around several hundreds) I run into the problem of Splunk flagging me all the scripts as too_small_&lt;FILENAME&gt;.&lt;/FILENAME&gt;&lt;/P&gt;

&lt;P&gt;Most of the scripts start with #!/bin/bash or #!/bin/sh and those should all be flagged as "shell_scripts"&lt;/P&gt;

&lt;P&gt;I tried creating a rule in props.conf to filter our those files and then set a source_type but this does not seem to work.&lt;/P&gt;

&lt;P&gt;I am using a universal forwarder right now.&lt;/P&gt;

&lt;P&gt;Any ideas how I could get this work or where the problem might be ?&lt;/P&gt;

&lt;P&gt;Can I selectively disable the too_small source_type ?&lt;/P&gt;

&lt;P&gt;Thanks a lot in advance &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:11:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28139#M4781</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2020-09-28T10:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28140#M4782</link>
      <description>&lt;P&gt;First, I am a bit confused.  With fschange, you usually monitor directories for changes. Splunk creates an event whenever a file in the directory is changed, added or deleted. The sourcetype of these events is set to &lt;STRONG&gt;fs_notification&lt;/STRONG&gt; by default; it should not show up as "too_small...".  The stanza for setting up fschange monitoring looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fschange:/absolute/path/to/my/directory]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can't do this via the user interface.  You have to add the fschange stanza to &lt;STRONG&gt;inputs.conf&lt;/STRONG&gt; manually, on your forwarders.&lt;BR /&gt;&lt;BR /&gt;
You can have Splunk index the contents of the shell scripts, though I don't think that is very useful.  If you do that, you could get the "too_small..." sourcetype.  And you could fix it by putting this into &lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::/.../*.sh]
sourcetype=shell_script
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which says "if the file name ends in .sh, set the sourcetype to 'shell_script'"&lt;BR /&gt;
This would go into a &lt;STRONG&gt;props.conf&lt;/STRONG&gt; file on your forwarders.  If you have a lot of forwarders, you might consider using Splunk's &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Deploy/Aboutdeploymentserver"&gt;Deployment Server&lt;/A&gt; to distribute the config files (inputs.conf, props.conf, etc.).  (The Deployment Server is part of Splunk.)&lt;/P&gt;

&lt;P&gt;However, you can only change the sourcetype of &lt;STRONG&gt;new&lt;/STRONG&gt; events.  You can't change events that have already been indexed.  You have a few choices for existing events:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Clean the indexes (on the Splunk indexers). Reset the "fishbucket" on the Universal Forwarders.  This will cause ALL of your data to be re-indexed.  Fine if you are pre-production or testing, but probably not acceptable if you are working with a production Splunk environment.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Use Sourcetype Renaming.  (Find it under the Manager -&amp;gt; Fields -&amp;gt;Sourcetype renaming.)  This will logically rename the sourcetype, although it doesn't change the actual data in the index.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I hope this helps!&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 01:40:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28140#M4782</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-12-03T01:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28141#M4783</link>
      <description>&lt;P&gt;And also don't forget that you cannot use &lt;CODE&gt;[monitor]&lt;/CODE&gt; and &lt;CODE&gt;[fschange]&lt;/CODE&gt; on the same set of files/directories. Check out the information in the documentation for inputs.conf&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 11:46:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28141#M4783</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2011-12-03T11:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28142#M4784</link>
      <description>&lt;P&gt;Yes, I knew that but it does not solve my problem.&lt;BR /&gt;
How to flag an event with a certain sourcetype if the source (file) name is unknown &lt;BR /&gt;
and only the first line is ? &lt;BR /&gt;
All the events get flagged as too_small as the shell scripts tend to be rather small.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 15:45:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28142#M4784</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2011-12-03T15:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28143#M4785</link>
      <description>&lt;P&gt;So the scripts aren't named with an extension of .sh? You could also put a series of extensions in the spec - such as (.sh|.bat|.py|.bsh) or whatever... Or, perhaps the scripts reside under a particular directory name?&lt;BR /&gt;
Ultimately, you have to have some way of identifying the file:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;by a pattern in the file name or the directory path&lt;/LI&gt;
&lt;LI&gt;by the host that it comes from&lt;/LI&gt;
&lt;LI&gt;by sourcetype&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;As an alternative, you &lt;EM&gt;could&lt;/EM&gt; rename all sourcetypes that start with "too-small", but you run a significant risk of mislabeling an actual log file that is small. Here's how in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[(?:::){0}too_small*]
sourcetype=shell_script
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Again, this will apply only to new data.  Earlier comments about re-indexing/renaming sourcetypes still apply.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 19:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28143#M4785</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-12-03T19:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28144#M4786</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Thanks for all your answers.&lt;/P&gt;

&lt;P&gt;I thought about being able to determine the source-type based on the first line of a file as I neither have a known file extension nor a fixed / known directory where the shell scripts exist. &lt;/P&gt;

&lt;P&gt;Actually I could find all the directories but that would cost a significant amount of time and end in a very inefficient and hard-to-maintain config.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 09:10:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28144#M4786</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2011-12-05T09:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28145#M4787</link>
      <description>&lt;P&gt;But surely you do know where the directories are to define your fschange/monitor stanza in the first place?&lt;BR /&gt;
What lisa is suggesting is to just define the sourcetype of all files within those directories of a certain file extension. Even if there are a range of them surely they adhere to some form of best practices, e.g. extension and location?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 11:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28145#M4787</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2011-12-05T11:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28146#M4788</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Thanks for all the suggestions , but as I need to do full scale file integrity monitoring with splunk, I just need to check complete Linux systems.&lt;/P&gt;

&lt;P&gt;Unfortunately, there are a lot of files in different directories and not all of the have a useful ending , let alone all the applications that I need to monitor.&lt;/P&gt;

&lt;P&gt;I used to do that with some other tool, but am not "limited" to splunk and this is why I came up with that idea of checking the first line of each file with a regex and then assign the source-type &lt;/P&gt;

&lt;P&gt;Might this work with some kind of transformation rule ? &lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 12:11:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28146#M4788</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2011-12-05T12:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28147#M4789</link>
      <description>&lt;P&gt;Update &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I now tried to go on as shown &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Advancedsourcetypeoverrides" target="_blank"&gt;here&lt;/A&gt; but this does not seem to fix my problem &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;The file genRootCA.sh is a small shell script, still it does not get flagged as shellscript but as -too-small. See debug output, how can I override the -too-small sourcetype recognition per event ?&lt;/P&gt;

&lt;P&gt;Where is my mistake ?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[shellscript]&lt;/P&gt;

&lt;P&gt;BREAK_ONLY_BEFORE_DATE=false&lt;/P&gt;

&lt;P&gt;TRANSFORMS-shell_script=shell_script_transform&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[shell_script_transform]&lt;/P&gt;

&lt;P&gt;REGEX = ^#!\/bin\/(bash|sh)&lt;/P&gt;

&lt;P&gt;LOOKAHEAD = 16&lt;/P&gt;

&lt;P&gt;DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;P&gt;FORMAT = sourcetype::shellscript&lt;/P&gt;

&lt;PRE&gt;
12-06-2011 18:33:26.693 INFO  FSChangeMonitor - Generating notifications on /testing2
12-06-2011 18:33:26.693 DEBUG FSChangeMonitor - blacklist entered; path=/testing2/genRootCA.sh
12-06-2011 18:33:26.693 DEBUG FSChangeMonitor - no blacklist matches found
12-06-2011 18:33:26.697 DEBUG FSChangeManagerProcessor - NOTIFICATION (ADD)=/testing2/genRootCA.sh
12-06-2011 18:33:26.697 DEBUG PropertiesMapConfig - Performing pattern matching for: source::fschangemonitor|host::flos-MacBook-Pro.local|fs_notification|
12-06-2011 18:33:26.698 DEBUG PropertiesMapConfig - Pattern 'fs_notification' matches with priority 100
12-06-2011 18:33:26.698 DEBUG FileClassifierManager - Finding type for file: /testing2/genRootCA.sh
12-06-2011 18:33:26.698 INFO  UTF8Processor - Converting using CHARSET="UTF-8" for conf "source::fschangemonitor|host::flos-MacBook-Pro.local|fs_notification|"
12-06-2011 18:33:26.698 DEBUG PropertiesMapConfig - Performing pattern matching for: source::/testing2/genRootCA.sh
12-06-2011 18:33:26.698 INFO  LineBreakingProcessor - Using truncation length 10000 for conf "source::fschangemonitor|host::flos-MacBook-Pro.local|fs_notification|"
12-06-2011 18:33:26.698 INFO  LineBreakingProcessor - Using lookbehind 100 for conf "source::fschangemonitor|host::flos-MacBook-Pro.local|fs_notification|"
12-06-2011 18:33:26.698 DEBUG PropertiesMapConfig - Performing pattern matching for: source::/testing2/genRootCA.sh
12-06-2011 18:33:26.698 INFO  AggregatorMiningProcessor - Setting up line merging apparatus for: source::fschangemonitor|host::flos-MacBook-Pro.local|fs_notification|
12-06-2011 18:33:26.698 DEBUG PropertiesMapConfig - Performing pattern matching for: source::/testing2/genRootCA.sh
12-06-2011 18:33:26.698 DEBUG FileClassifierManager - filename="/testing2/genRootCA.sh" invalidCharCount="0" TotalCharCount="2367" PercentInvalid="0.000000"
12-06-2011 18:33:26.698 DEBUG PropertiesMapConfig - Pattern 'genRootCA-too_small' matches with priority 100
12-06-2011 18:33:26.698 INFO  HotDBManager - no hot found for event ts=1323192806, closest match=null [expanded span=0]
12-06-2011 18:33:26.698 DEBUG FSChangeManagerProcessor - CLASSIFIED /testing2/genRootCA.sh as genRootCA-too_small
12-06-2011 18:33:26.698 DEBUG HotDBManager - dir does not exist, creating: /Applications/splunk/var/lib/splunk/testing/db/hot_v1_23
12-06-2011 18:33:26.698 DEBUG PropertiesMapConfig - Performing pattern matching for: source::/testing2/genRootCA.sh|host::flos-MacBook-Pro.local|genRootCA-too_small|
12-06-2011 18:33:26.698 INFO  databasePartitionPolicy - creating new DB /Applications/splunk/var/lib/splunk/testing/db/hot_v1_23
12-06-2011 18:33:26.698 INFO  timeinvertedIndex - Opening /Applications/splunk/var/lib/splunk/testing/db/hot_v1_23
12-06-2011 18:33:26.699 INFO  timeinvertedIndex - No files to decompress on create
12-06-2011 18:33:26.699 DEBUG PropertiesMapConfig - Pattern 'genRootCA-too_small' matches with priority 100
12-06-2011 18:33:26.699 INFO  timeinvertedIndex - create by dirname /Applications/splunk/var/lib/splunk/testing/db/hot_v1_23
12-06-2011 18:33:26.699 INFO  UTF8Processor - Converting using CHARSET="UTF-8" for conf "source::/testing2/genRootCA.sh|host::flos-MacBook-Pro.local|genRootCA-too_small|"
12-06-2011 18:33:26.699 INFO  FSChangeMonitor - Finished generating notifications on /testing2 addCount=1 updateCount=0 deleteCount=0
12-06-2011 18:33:26.699 DEBUG databasePartitionPolicy - opening datafile for newly created TEDB: /Applications/splunk/var/lib/splunk/testing/db/hot_v1_23
12-06-2011 18:33:26.699 INFO  LineBreakingProcessor - Using truncation length 10000 for conf "source::/testing2/genRootCA.sh|host::flos-MacBook-Pro.local|genRootCA-too_small|"
12-06-2011 18:33:26.699 INFO  LineBreakingProcessor - Using lookbehind 100 for conf "source::/testing2/genRootCA.sh|host::flos-MacBook-Pro.local|genRootCA-too_small|"
12-06-2011 18:33:26.699 INFO  databasePartitionPolicy - lazy loading database for: /Applications/splunk/var/lib/splunk/testing/db/hot_v1_23, id=23, ts=1323192806 dirMgr::nextId=23]
12-06-2011 18:33:26.699 INFO  HotDBManager - creating new hot (id=23, time=1323192806)]
12-06-2011 18:33:26.699 INFO  AggregatorMiningProcessor - Setting up line merging apparatus for: source::/testing2/genRootCA.sh|host::flos-MacBook-Pro.local|genRootCA-too_small|
12-06-2011 18:33:26.699 DEBUG UTF8Processor - Done key received for: source::/testing2/genRootCA.sh|host::flos-MacBook-Pro.local|genRootCA-too_small|

&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28147#M4789</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2020-09-28T10:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28148#M4790</link>
      <description>&lt;P&gt;it seems that I cannot get splunk to assign a source-type based on actual file characteristics, something it seems to be able to do (see the too_small) source-type assignment.&lt;/P&gt;

&lt;P&gt;Why doesn't it ever pick up my [shellscript] source-type , where is the error in my thinking ?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2011 16:25:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28148#M4790</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2011-12-07T16:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28149#M4791</link>
      <description>&lt;P&gt;Your stanza [shellscript] says "only apply the following transform to inputs that are ALREADY assigned the sourcetype of shellscript"&lt;/P&gt;

&lt;P&gt;If you said [*] then it would apply the transformation to inputs from ALL sourcetypes, on a line-by-line basis.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 23:03:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28149#M4791</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-12-09T23:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28150#M4792</link>
      <description>&lt;P&gt;Or you could say [too_small*] which would apply the transformation only to those inputs - this is probably closer to what you want.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2011 23:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28150#M4792</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-12-09T23:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28151#M4793</link>
      <description>&lt;P&gt;Hi People &lt;/P&gt;

&lt;P&gt;I solved the problem and if you don't overlook the fact that you have to use a heavy forwarder / server it's easy.&lt;/P&gt;

&lt;P&gt;Need to do some more tests regarding performance and the like but it looks at least promising &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[shellscript]&lt;BR /&gt;
BREAK_ONLY_BEFORE=^#!\/bin\/(bash|sh)&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE=false&lt;BR /&gt;
LEARN_MODEL = false&lt;BR /&gt;
MAX_EVENTS=200000&lt;/P&gt;

&lt;P&gt;[rule::find_shellscript]&lt;BR /&gt;
MORE_THAN_0 =  ^#!\/bin\/(bash|sh)&lt;BR /&gt;
sourcetype=shellscript&lt;/P&gt;

&lt;P&gt;One little question remains, does a LESS_THAN_x implicate that is has to occur at least once ?&lt;/P&gt;

&lt;P&gt;Greets &lt;/P&gt;

&lt;P&gt;Flo&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:12:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28151#M4793</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2020-09-28T10:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Shellscript monitoring / too_small sourcetype problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28152#M4794</link>
      <description>&lt;P&gt;It seems because of a lack of recursive sourcetype matching this is not really solvable by now &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Solved it by setting the sourcetype on the forwarder and doing some processing on the indexer.&lt;/P&gt;

&lt;P&gt;Recursive matching of at least 1 level seems like a needed feature.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2011 15:18:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Shellscript-monitoring-too-small-sourcetype-problem/m-p/28152#M4794</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2011-12-16T15:18:27Z</dc:date>
    </item>
  </channel>
</rss>

