<?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: Can you have a wildcard in a props.conf stanza header when matching sourcetypes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101046#M21165</link>
    <description>&lt;P&gt;@fervin: Please post any more information you may receive on this. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2016 21:52:16 GMT</pubDate>
    <dc:creator>helge</dc:creator>
    <dc:date>2016-02-18T21:52:16Z</dc:date>
    <item>
      <title>Can you have a wildcard in a props.conf stanza header when matching sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101040#M21159</link>
      <description>&lt;P&gt;I have some settings that I want to apply to several sourcetypes with similar names. Can I do something like this in props.conf?&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[examplesourcetype*]&lt;BR /&gt;&lt;BR /&gt;
stuff...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Instead of:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[examplesourcetype1]&lt;BR /&gt;&lt;BR /&gt;
[examplesourcetype2]&lt;BR /&gt;
...and so on.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The documentation doesn't say it's forbidden but it doesn't explicitly say its possible either. You can do wildcards with sources &amp;amp; hosts so it's not such a stretch to think sourcetypes should work too.&lt;/P&gt;

&lt;P&gt;Does anyone know for sure either way?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2011 19:07:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101040#M21159</guid>
      <dc:creator>erga00</dc:creator>
      <dc:date>2011-05-12T19:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can you have a wildcard in a props.conf stanza header when matching sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101041#M21160</link>
      <description>&lt;P&gt;I've personally never tried this, as I don't have many sourcetypes with similar names, but I think you're more then ok.&lt;/P&gt;

&lt;P&gt;From the docs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;When setting a [&amp;lt;spec&amp;gt;] stanza, you can use the following regex-type syntax:
... recurses through directories until the match is met.
*   matches anything but / 0 or more times.
|   is equivalent to 'or'
( ) are used to limit scope of |.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And since "spec" is defined as:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;spec&amp;gt; can be:
 1. &amp;lt;sourcetype&amp;gt;, the source type of an event.
 2. host::&amp;lt;host&amp;gt;, where &amp;lt;host&amp;gt; is the host for an event.
 3. source::&amp;lt;source&amp;gt;, where &amp;lt;source&amp;gt; is the source for an event.
 4. rule::&amp;lt;rulename&amp;gt;, where &amp;lt;rulename&amp;gt; is a unique name of a source type classification rule.
 5. delayedrule::&amp;lt;rulename&amp;gt;, where &amp;lt;rulename&amp;gt; is a unique name of a delayed source type classification rule.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would say that though they don't "explicitly" say it's possible, they imply it's a valid match.  The bigger thing to make sure of is the spec matching conditions and make sure your regex is written in a way to only match your desired "sourcetype1" specs.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2011 22:05:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101041#M21160</guid>
      <dc:creator>bbingham</dc:creator>
      <dc:date>2011-05-12T22:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can you have a wildcard in a props.conf stanza header when matching sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101042#M21161</link>
      <description>&lt;P&gt;Yes, you can, though it's not documented clearly (or at all). For host:: and source:: stanzas, you can simply use the * character for a wildcard. But for sourcetype, you need to use the following odd syntax: &lt;CODE&gt;(?::){0}&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[(?::){0}WinEventLog:*]
REPORT-myfield = do_some_stuff
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Mar 2012 12:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101042#M21161</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2012-03-26T12:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can you have a wildcard in a props.conf stanza header when matching sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101043#M21162</link>
      <description>&lt;P&gt;Hi you can have wildcards in props.conf&lt;/P&gt;

&lt;P&gt;but the following priority rules apply : exact &amp;gt; widlcard, and alphabetical A &amp;gt; B&lt;BR /&gt;
so if you need, try adding a priority parameter :&lt;BR /&gt;
exact stanza = default priority 100&lt;BR /&gt;
wildcard stanza = default priority 10&lt;BR /&gt;
highest priority wins of course.&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.1/admin/Attributeprecedencewithinafile"&gt;http://docs.splunk.com/Documentation/Splunk/4.3.1/admin/Attributeprecedencewithinafile&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 17:39:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101043#M21162</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-04-19T17:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can you have a wildcard in a props.conf stanza header when matching sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101044#M21163</link>
      <description>&lt;P&gt;This same solution is presented in a 2014 Splunk blog article written by Splunk's Jason Conger. However, Splunk's Joshua Rodman commented: "This is not supported product functionality, and relying on it is extremely unwise."&lt;/P&gt;

&lt;P&gt;It would be good to have an official recommendation as to whether this "hack" is supported. Or, better yet, Splunk should support wildcard for sourcetypes, too!&lt;/P&gt;

&lt;P&gt;Blog article mentioned: &lt;A href="http://blogs.splunk.com/2014/07/31/quick-tip-wildcard-sourcetypes-in-props-conf/"&gt;http://blogs.splunk.com/2014/07/31/quick-tip-wildcard-sourcetypes-in-props-conf/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2016 01:02:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101044#M21163</guid>
      <dc:creator>helge</dc:creator>
      <dc:date>2016-01-15T01:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can you have a wildcard in a props.conf stanza header when matching sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101045#M21164</link>
      <description>&lt;P&gt;I have opened a support ticket requesting clarification on this (case 321848).  As we drive HTTP Event Collector (EC) adoption, I think it's going to be necessary to set props based on a sourcetype prefix.  If we issue two EC tokens which define sourcetype=ec:aspnet:application1 and sourcetype=ec:aspnet:application2  respectively, the ideal configuration would be to configure props on sourcetype=ec:aspnet:* rather than maintaining separate directives.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 20:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101045#M21164</guid>
      <dc:creator>fervin</dc:creator>
      <dc:date>2016-02-18T20:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can you have a wildcard in a props.conf stanza header when matching sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101046#M21165</link>
      <description>&lt;P&gt;@fervin: Please post any more information you may receive on this. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 21:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-have-a-wildcard-in-a-props-conf-stanza-header-when/m-p/101046#M21165</guid>
      <dc:creator>helge</dc:creator>
      <dc:date>2016-02-18T21:52:16Z</dc:date>
    </item>
  </channel>
</rss>

