Deployment Architecture

btool application validation

EricPartington
Communicator

I would like to build a btool command into a script that I use to promote content to my deployment server to catch spelling mistakes or issues before deploying the new code.

Is there a command using btool to validate the syntax of an app before promotion>

btool check --debug

does all the application and config files, is there a way to specify and app (the one that I am promoting)
btool check --app=iti --debug

let me know how i can protect myself from myself with btool or some other splunk command

thanks,

Tags (2)
0 Karma
1 Solution

sowings
Splunk Employee
Splunk Employee

The recipe I've been given (excerpted below) seems to work well to understand what the props list (or the merged contents of any other file) would be, but my current version (5.0.3) is showing validation errors (btool check) of savedsearches.conf. Not sure why, but you can give this a spin:

$ mkdir -p /tmp/staging
# Set up deployment apps from server
$ cp -pr $SERVER_SPLUNKHOME/etc/deployment-apps /tmp/staging/apps
# Set up "base configuration" plus validation rules from client
$ cp -pr $CLIENT_SPLUNKHOME/etc/system /tmp/staging
# Run checker
$ btool check --dir=/tmp/staging

(H/T to ewoo)

View solution in original post

sowings
Splunk Employee
Splunk Employee

The recipe I've been given (excerpted below) seems to work well to understand what the props list (or the merged contents of any other file) would be, but my current version (5.0.3) is showing validation errors (btool check) of savedsearches.conf. Not sure why, but you can give this a spin:

$ mkdir -p /tmp/staging
# Set up deployment apps from server
$ cp -pr $SERVER_SPLUNKHOME/etc/deployment-apps /tmp/staging/apps
# Set up "base configuration" plus validation rules from client
$ cp -pr $CLIENT_SPLUNKHOME/etc/system /tmp/staging
# Run checker
$ btool check --dir=/tmp/staging

(H/T to ewoo)

Get Updates on the Splunk Community!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...