Splunk Search

Precedence of explicit vs wildcard in props.conf

Jason
Motivator

I'm setting the timezone for hundreds of forwarders at once by using props.conf wildcards on host:

[host::DN*]
# Denver Hosts
TZ = America/Denver

However, there are a few hosts that have timezones mis-set. Will setting the following explicit entry in the same file (in etc/apps/theapp/local) override the above wildcard?

[host::DNSERVER9]
# Misconfigured to Central time
TZ = America/Chicago

If not, can I override by putting the setting in a different app, (earlier lexographically), such as etc/apps/appname/local?

Tags (1)
1 Solution

Jason
Motivator

According to props.conf.spec, it seems that the literal will override the pattern/wildcard by default:

If not specified, the default value for the priority field for:
     - pattern matching stanzas is 0
     - literal matching stanzas is 100

View solution in original post

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

lexicographic app will not override. however, literal (non-wildcard) matches in props.conf will override wildcard matches.

Jason
Motivator

According to props.conf.spec, it seems that the literal will override the pattern/wildcard by default:

If not specified, the default value for the priority field for:
     - pattern matching stanzas is 0
     - literal matching stanzas is 100
0 Karma

Jason
Motivator

And also check the spec for the ability to set priority to override things as need be.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...