<?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: source:: rule in props.conf ignored? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65963#M13245</link>
    <description>&lt;P&gt;Yes, overlapping inputs.conf entries work from 4.2 on.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2013 15:33:44 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2013-04-10T15:33:44Z</dc:date>
    <item>
      <title>source:: rule in props.conf ignored?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65958#M13240</link>
      <description>&lt;P&gt;I have an inputs.conf that looks like this:&lt;/P&gt;

&lt;PRE&gt;
[monitor:///syslog/.../*.log]
host_segment = 4
sourcetype = syslog
ignoreOlderThan = 5d
blacklist = \.gz$
&lt;/PRE&gt;

&lt;P&gt;I use transforms to remap a lot of the events from the 'syslog' sourcetype into other types, as appropriate. There are a couple of hosts (with logs in a host-specific subdirectory) which emit a bunch of different event types, so a single transform rule didn't make sense. I wanted to do a source-based rule, triggering on the host IP in the directory name, to capture &lt;EM&gt;everything&lt;/EM&gt; from this host in a sourcetype.&lt;/P&gt;

&lt;P&gt;My rule looks like this:&lt;/P&gt;

&lt;PRE&gt;
[source::.../192.168.11.175/*.log]
sourcetype = other_log
&lt;/PRE&gt;

&lt;P&gt;I've tried a number of possible stanza definitions, guided in part by this answer: &lt;A href="http://splunk-base.splunk.com/answers/57527/forwarder-propsconf-source-stanza"&gt;http://splunk-base.splunk.com/answers/57527/forwarder-propsconf-source-stanza&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I can't get the source rule to trigger; I never have any events in the 'other_log' sourcetype, they always remain as 'syslog'.  What can I do to triage this? What settings would I tweak in the log to show what Splunk is trying to do? Am I missing something obvious?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2012 18:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65958#M13240</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-12-17T18:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: source:: rule in props.conf ignored?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65959#M13241</link>
      <description>&lt;P&gt;The instructions in the docs are for specifically resetting &lt;STRONG&gt;auto-sourcetyped&lt;/STRONG&gt; data, but you have already set a manual sourcetype in inputs.conf, so it's never going to get overwritten again, unless you specifically use a props/transforms entry to re-write it completely, an example is posted here - &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Data/Advancedsourcetypeoverrides#Example:_Assign_a_source_type_to_events_from_a_single_input_but_different_hosts"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Data/Advancedsourcetypeoverrides#Example:_Assign_a_source_type_to_events_from_a_single_input_but_different_hosts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Another alternative would be to remove '&lt;CODE&gt;sourcetype = syslog&lt;/CODE&gt;' from &lt;CODE&gt;inputs.conf&lt;/CODE&gt; and rely on a combination of auto-sourcetyping and other &lt;CODE&gt;props.conf&lt;/CODE&gt; stanzas to set the sourcetypes on the non-syslog data.  &lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2012 19:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65959#M13241</guid>
      <dc:creator>Mick</dc:creator>
      <dc:date>2012-12-17T19:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: source:: rule in props.conf ignored?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65960#M13242</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;I had mistakenly believed that [source:: ] rules had higher priority than [sourcetype] stanzas within props.conf, so that I could treat [source:: ] entries as exceptions and [sourcetype]s as the rule....&lt;/P&gt;

&lt;P&gt;I'll find another approach.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2012 19:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65960#M13242</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-12-17T19:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: source:: rule in props.conf ignored?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65961#M13243</link>
      <description>&lt;P&gt;You can do this a couple of ways: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Remove the sourcetype from inputs.conf, and specify source:: rules in props.conf, making sure to cover all possible files from the inputs.conf; or&lt;/LI&gt;
&lt;LI&gt;Remove the props.conf entry and simply use an overlapping inputs.conf entry with a whitelist that for your desired filename pattern, and specify the sourcetype there.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 17 Dec 2012 20:58:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65961#M13243</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-12-17T20:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: source:: rule in props.conf ignored?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65962#M13244</link>
      <description>&lt;P&gt;Can such an overlapping inputs.conf entry be used with Splunk 4.2.x?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 14:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65962#M13244</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-04-10T14:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: source:: rule in props.conf ignored?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65963#M13245</link>
      <description>&lt;P&gt;Yes, overlapping inputs.conf entries work from 4.2 on.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2013 15:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/source-rule-in-props-conf-ignored/m-p/65963#M13245</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2013-04-10T15:33:44Z</dc:date>
    </item>
  </channel>
</rss>

