KSCONF is a command-line tool that helps administrators and developers manage their Splunk environments by enhancing control of their configuration files. The interface is modular so that each function (or subcommand) can be learned quickly and used independently. While most users will probably only use a subset of the total capabilities of this tool, it’s reassuring to have a comprehensive toolbox of powerful assets ready to be utilized at a moment's notice. Ksconf works with, rather than replace, your existing Splunk deployment mechanisms and version control tools.
KSCONF is open source and an open development effort. Check us out on GitHub
Pronounced: k·s·kȯnf
This Splunk app comes bundled with a CLI tool that helps manage other Splunk apps. While this is not a traditional use case for a Splunk app, it is a very quick and easy way to deploy ksconf.
Why did we make this a Splunk app? While ksconf is technically just a Python package that can be deployed in a variety of ways, we found that the logistics of getting it deployed can be quite difficult due to a packaging issues, legacy cruft, and OS limitations. This approach avoids all that mess.
Full documentation for ksconf, including this app, is hosted at read-the-docs. A full copy of the ksconf
documentation is also included, similar to how Splunk ships with a full copy of the docs in the system/README folder. (And all the air-gapped people rejoice! but sadly, no one could hear them.)
Additional Splunk UI features are planned, but currently not implemented.
ksconf
local
folder. (The built-in rest
command only shows you the final merged view of your settings; and sometimes you have to look deeper.)See the Install an add-on in Splunk's official documentation. There is one manual step required to activate the CLI portion of this app, if you choose to do so. See the Installation docs for more details.
Community support is available on best-effort basis. For information about commercial support, contact Kintyre
Issues are tracked via GitHub
See the full Change log
ksconf attr-get
and ksconf attr-set
commandsksconf merge
operationsSee full release notes
Fix Splunk packaging bug.
See change log
See full change log here:
https://ksconf.readthedocs.io/en/stable/changelog.html#ksconf-v0-11-5-2023-08-25
See change log
Python packaging issue found. Do not use this version.
filter
command can now include/exclude stanzas based on the boolean value of disabled
using the new --enabled-only
or --disabled-only
arguments. The default behavior remains the same, that is, the disabled
attribute is completely ignored.merge
, combine
and package
commands..conf
files and concatenated files will keep the most recent modification time in the destination.`ombine
and package
(by extension) more deterministic in many scenarios.ksconf combine
with new --keep-existing <pattern>
and --disable-cleanup
arguments.ksconf promote
by combining --stanza <pattern>
and --summary
or --diff
options at the same time.ksconf diff
output options for (1) setting detail level using --detail {global,stanza,key}
and (2) new JSON output format with --format json
. Fixed an diff output bug and some inconsistencies in space.KSCONF_TTY_COLOR={auto,force,off}
. This can also be done with --disable-color
CLI option.Read the full change log here:
https://ksconf.readthedocs.io/en/v0.9.0/changelog.html#ksconf-0-9
*.conf.spec
files in ksconf combine
, thus allowing README.d
to be it's own layer.ksconf unarchive
issue with older version of git where git add DIR
didn't assume the --all
option. So if you're stuck on git 1.7/1.8 ksconf should still workinstall.py
Splunk app CLI install helper script to support referencing a specific version of Python. This allows Splunk 8.0 user sto run ksconf using Python3, for example.Full list:
https://ksconf.readthedocs.io/en/devel/changelog.html#ksconf-v0-8-6-2020-04-20
Build and packaging enhancements
--allowlist
to be -a
, before it was -w
.package
command to check for app naming issues and hidden files and directories.{{app_id}}
variable to ksconf package
command.copy_files()
for additional control over the destination path in the build folder.make_missing
in update_conf()
, missing directories will now be created too.build.py
scriptSee details here: https://ksconf.readthedocs.io/en/v0.8.4/changelog.html#ksconf-v0-8-4-2020-03-22
Official change log: https://ksconf.readthedocs.io/en/latest/changelog.html#ksconf-0-8
Empty stanza bug fix
ksconf promote
.ksconf diff
interface to improve handling of empty stanzasThis release fixes up packaging issues with python package folders that may caused issues after upgrades. Unfortunately, this means everyone who had installed 0.6.x should uninstall and do a fresh install of 0.7.0. Hopefully this issue is resolved and extra steps like this won't be required in the future.
As always, read the full change log here:
https://ksconf.readthedocs.io/en/v0.7.0/changelog.html#release-v0-7-0-2019-02-27
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.