Give your Splunk end-users the possibility to commit changes to their own Apps to a subversion repository.
"VControl" provides GUI extensions to the Splunk SearchHead to commit changes on Dashboards, Views, SavedSearches, etc. to subversion. End-users can browse their revision logs, check for file-diffs, and see the file contents for their apps.
The App has to be installed on the SearchHead only
Copy the file $APP_HOME/default/svn.conf.example to $APP_HOME/local/svn.conf and change its content according to your needs
Initially, Apps have to be put manually under Subversion control. To use an already created App in $SPLUNK_HOME/etc/apps with "VControl", do the following
i.e. put the example App "webstats2.0" under control of "VControl":
See next chapter "App Naviation" to see how you can add an Admin Navigation link to "webstats2.0" to give end-users the posibility for versioning their changes
To add the possibility for end-users to version their own Apps, there are two globally defined views ("versioncontrol" and "versioncontrol-revisions") that you can include in their Apps navigation path.
For example, if you want to give the owner of the "Webstats2.0" App the posibility to use "VControl", include following lines in the navigation menu "default.xml" of "Webstats2.0":
<collection label="Admin" >
<view name="versioncontrol" />
<view name="versioncontrol-revisions" />
</collection>
See following screenshot as an example:
Enable logging by configuring python "splunk.svn" stanza in the log-local.cfg file
i.e.
#> cat $SPLUNK_HOME/etc/log-local.cfg
[python]
splunk.svn = DEBUG
Then see the logs in $SPLUNK_HOME/var/log/splunk/svn.log
initial version
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.