<?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 Props.conf / Regex question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Props-conf-Regex-question/m-p/36239#M8059</link>
    <description>&lt;P&gt;I add this to props.conf to detect shellscripts, but interesting enough this not only matches shell-scripts but also a lot of other files as well, not matching the regex.&lt;/P&gt;

&lt;P&gt;What am I missing ? &lt;/P&gt;

&lt;P&gt;[rule::find_shellscript]&lt;BR /&gt;
MORE_THAN_0 = ^#!\/bin\/(bash|sh)&lt;BR /&gt;
LEARN_MODEL=false&lt;BR /&gt;
LEARN_SOURCETYPE=false&lt;BR /&gt;
sourcetype=shellscript&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:13:56 GMT</pubDate>
    <dc:creator>flo_cognosec</dc:creator>
    <dc:date>2020-09-28T10:13:56Z</dc:date>
    <item>
      <title>Props.conf / Regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-conf-Regex-question/m-p/36239#M8059</link>
      <description>&lt;P&gt;I add this to props.conf to detect shellscripts, but interesting enough this not only matches shell-scripts but also a lot of other files as well, not matching the regex.&lt;/P&gt;

&lt;P&gt;What am I missing ? &lt;/P&gt;

&lt;P&gt;[rule::find_shellscript]&lt;BR /&gt;
MORE_THAN_0 = ^#!\/bin\/(bash|sh)&lt;BR /&gt;
LEARN_MODEL=false&lt;BR /&gt;
LEARN_SOURCETYPE=false&lt;BR /&gt;
sourcetype=shellscript&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:13:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-conf-Regex-question/m-p/36239#M8059</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2020-09-28T10:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf / Regex question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-conf-Regex-question/m-p/36240#M8060</link>
      <description>&lt;P&gt;Seems like the MORE_THAN / LESS_THAN operators don't actually work as expected , was corrected in the docs already &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:24:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-conf-Regex-question/m-p/36240#M8060</guid>
      <dc:creator>flo_cognosec</dc:creator>
      <dc:date>2020-09-28T20:24:57Z</dc:date>
    </item>
  </channel>
</rss>

