Getting Data In

Wildcards not working in tags.conf

dhughesanz
New Member

I have the below config in tags.conf:

[source=/some/directory/logs/foo-bar/error.log]
sometag = enabled

And this works to tag the event with the source.

However, when I try and use wildcards as per below:

[source=/some/directory/logs/foo*/*.log]
sometag = enabled

The tag is not applied to event with the source. I've tried encoding and escaping the characters but neither are working.

Any ideas?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

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 sourcetype=foo.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...