On This Page

Home / Cribl as Code/Code Examples

Code Examples

Preview Feature

The Cribl SDKs are Preview features that are still being developed. We do not recommend using them in a production environment, because the features might not be fully tested or optimized for performance, and related documentation could be incomplete.

Please continue to submit feedback through normal Cribl support channels, but assistance might be limited while the features remain in Preview.

The code examples in this section demonstrate how to use the Cribl Python SDK for the control plane and the Cribl API for several common use cases.

Before using the code examples, follow the instructions to authenticate your requests. If you prefer, you can create and save an .env file according to the SDK setup instructions instead to keep sensitive information out of your source code.

The code examples cover the following use cases: