CriblUtilities is a Python CLI package that streamlines migration to Cribl Stream and validates configurations. With minimal setup, it transfers configurations from existing tools to Cribl Stream. It also integrates with Cribl GitOps workflows to verify naming conventions and file formats before implementing changes.
Contents: Functionality · Disclaimer · Usage · Prerequisites · Development · Releasing
| Command | Explanation |
|---|---|
setup |
Set up your CriblUtilities environment |
migrate |
Migrate database |
check |
Check file format adherence |
check |
Check naming convention with regex |
See the full CLI docs for every command and option.
This project is an independent initiative and is not affiliated, endorsed, or sponsored by Cribl. All trademarks and logos mentioned are the property of their respective owners. Please use this software responsibly and at your own risk.
Install the CLI from PyPI:
brew install pipx
pipx install cribl-utilities
cribl-utilities --helpPackage page: PyPI.
- A local Cribl user with, at minimum, the
stream_editorrole — required for the migrate use cases.
macOS / Linux
brew install pipx
sudo pipx ensurepath --global # allows the --global option below
pipx install poetry
poetry config virtualenvs.in-project true # keep venvs inside the projectWindows (PowerShell, run as administrator)
pip install pipx
pipx ensurepath
# close and reopen PowerShell
pipx install poetry
poetry config virtualenvs.in-project true # keep venvs inside the projectcd cribl-utilities
pipx install -e .pip install -r requirements.txt
cd cribl-utilities
docker compose up -d
# log in and update the admin password (default is admin / admin)
python example_usage_without_cli.py
docker compose down # cleanupdocker compose up -d
pip install -r requirements.txt
cd cribl-utilities
pytest
docker compose down # cleanupmkdocs serveReference: how the CLI project was originally scaffolded
These commands are not needed for day-to-day development — they document how the cribl-utilities Poetry/Typer project was first created.
poetry new cribl-utilities
cd cribl-utilities
poetry add typer
poetry shell
poetry build
poetry install
typer cribl_utilities.main utils docs --output docs/cli-docs.md --name cribl-utilitiesBuild and publish a new CLI release from the cribl-utilities folder:
poetry shell
poetry build
poetry config http-basic.pypi <username> <password> # run once
poetry publish --build