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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...