https://github.com/artemrys/splunk-kvstore-cli
Unofficial Splunk KVStore CLI
https://github.com/artemrys/splunk-kvstore-cli
cli splunk splunk-kvstore
Last synced: over 1 year ago
JSON representation
Unofficial Splunk KVStore CLI
- Host: GitHub
- URL: https://github.com/artemrys/splunk-kvstore-cli
- Owner: artemrys
- License: apache-2.0
- Created: 2022-02-11T23:07:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T20:56:37.000Z (about 2 years ago)
- Last Synced: 2024-04-29T22:12:23.244Z (about 2 years ago)
- Topics: cli, splunk, splunk-kvstore
- Language: Python
- Homepage:
- Size: 81.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# splunk-kvstore-cli
This is a small utility that helps to query Splunk KV Store (intended to use with [`jq`](https://stedolan.github.io/jq/)).
This tool is intended for local development, when developing something for Splunk which interacts with KVStore.
## Installation
`pip install splunk-kvstore-cli`
## Examples
> All the examples below can be suffixed with `| jq .` for better output
All the examples below use default value of `--host` parameter which is `https://localhost:8089`, but you can provide your own.
* `kv get -a addon_name -u user:password` - prints data about all the collections associated with the add-on `addon_name`
* `kv get -a addon_name -u user:password -m full` - prints **ALL** data about all the collections associated with the add-on `addon_name`
* `kv get -a addon_name -c collection_name -u user:password` - prints data from the particular collection `collection_name`
### Disclaimer
This is not an official Splunk product.