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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...