git-good-with-splunk
git-good-with-splunk copied to clipboard
use btool check to validate config
btool can be used to compare configuration files against the spec
To use this outside of the default directory you need a copy of that spec, and have the configuration in files so that it's structured like:
./master-apps/config-dirs
./apps/config-dirs
./system/README/all-the-specs
The check will flag for invalid keys and return things like:
Invalid key in stanza [default] in /opt/splunk_deploys/20220415174810/etc/master-apps/muebel_splunk_all_indexes/local/indexes.conf, line 1: foo (value: asdf).