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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...