Skip to main content

Crowdsec Utils

A small script to get you rolling parsing crowdsec jsons.

Example Usage

Parsing Decisions

# if using crowdsec on kubernetes, you can do something like this to get the decisions:
# kubectl exec -it deployment/crowdsec-lapi -- /bin/bash -c "cscli decisions list -o json" > crowdsec_decisions.json
cs-utils decisions -f ~/crowdsec_decisions.json

Parsing Alerts

# if using crowdsec on kubernetes, you can do something like this to get the alerts:
# kubectl exec -it deployment/crowdsec-lapi -- /bin/bash -c "cscli alerts list -o json" > crowdsec_alerts.json
cs-utils alerts -f ~/crowdsec_alerts.json

Formatting

All commands accept -o for formatting, but it defaults to pretty printing. To get a usable json, you can do:

cs-utils alerts -f ~/crowdsec_alerts.json -o json

You can then pipe that to something like jq to do more special parsing depending on your use case.

Contributing

Feel free to come in to add features or open up bug reports on codeberg.org. No AI is allowed though.

License

AGPL. See LICENSE for more info.

Metadata

Release files for crowdsec_utils 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crowdsec_utils 0.1.7
File Size Uploaded Provenance Actions
crowdsec_utils-0.1.7.tar.gz 16.8 kB Without provenance Details for crowdsec_utils-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crowdsec_utils 0.1.7
File Interpreter ABI Platform Actions
crowdsec_utils-0.1.7-py3-none-any.whl Python 3 none any Details for crowdsec_utils-0.1.7-py3-none-any.whl

Total release size: 36.1 kB

Release files / crowdsec_utils-0.1.7.tar.gz

Download URL crowdsec_utils-0.1.7.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d6dc4d18e0021780b1c1a63d17c10523d93fe4698390a82f5c1223995b2c7243
BLAKE2b-256 checksum
How to use checksums
96791dd051d32613fbc64c7cd41a95c845d477c4c2b3f1a8abe393a621e6452b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.11.2 Linux/6.1.0-47-amd64

Release files / crowdsec_utils-0.1.7-py3-none-any.whl

Download URL crowdsec_utils-0.1.7-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d9b0741e0752f4f6e4f7d518eee9f40207427444b90117834492bfaccef491b
BLAKE2b-256 checksum
How to use checksums
18c05ec0b2a4b8f3a74e85486328888f2c8088994aafb93c886a0237188215ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.11.2 Linux/6.1.0-47-amd64

Security for crowdsec_utils 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page