<?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 Wildcards not working in tags.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-not-working-in-tags-conf/m-p/477549#M99771</link>
    <description>&lt;P&gt;I have the below config in tags.conf:&lt;/P&gt;

&lt;P&gt;[source=/some/directory/logs/foo-bar/error.log]&lt;BR /&gt;
sometag = enabled&lt;/P&gt;

&lt;P&gt;And this works to tag the event with the source.&lt;/P&gt;

&lt;P&gt;However, when I try and use wildcards as per below:&lt;/P&gt;

&lt;P&gt;[source=/some/directory/logs/foo*/*.log]&lt;BR /&gt;
sometag = enabled&lt;/P&gt;

&lt;P&gt;The tag is not applied to event with the source. I've tried encoding and escaping the characters but neither are working.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:33:53 GMT</pubDate>
    <dc:creator>dhughesanz</dc:creator>
    <dc:date>2020-09-30T03:33:53Z</dc:date>
    <item>
      <title>Wildcards not working in tags.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-not-working-in-tags-conf/m-p/477549#M99771</link>
      <description>&lt;P&gt;I have the below config in tags.conf:&lt;/P&gt;

&lt;P&gt;[source=/some/directory/logs/foo-bar/error.log]&lt;BR /&gt;
sometag = enabled&lt;/P&gt;

&lt;P&gt;And this works to tag the event with the source.&lt;/P&gt;

&lt;P&gt;However, when I try and use wildcards as per below:&lt;/P&gt;

&lt;P&gt;[source=/some/directory/logs/foo*/*.log]&lt;BR /&gt;
sometag = enabled&lt;/P&gt;

&lt;P&gt;The tag is not applied to event with the source. I've tried encoding and escaping the characters but neither are working.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Wildcards-not-working-in-tags-conf/m-p/477549#M99771</guid>
      <dc:creator>dhughesanz</dc:creator>
      <dc:date>2020-09-30T03:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards not working in tags.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-not-working-in-tags-conf/m-p/477550#M99772</link>
      <description>&lt;P&gt;According to the tags.conf.spec, "Each stanza can refer to only one field=value", which I interpret to mean wildcards aren't allowed.  If you need to specify the same tags for multiple sources, try another field name, like &lt;CODE&gt;sourcetype=foo&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 13:00:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Wildcards-not-working-in-tags-conf/m-p/477550#M99772</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-10T13:00:22Z</dc:date>
    </item>
  </channel>
</rss>

