git-good-with-splunk icon indicating copy to clipboard operation
git-good-with-splunk copied to clipboard

use btool check to validate config

Open MattUebel opened this issue 2 years ago • 0 comments

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).

MattUebel avatar Apr 19 '22 14:04 MattUebel