cscli appsec-rules inspect
cscli appsec-rules inspect
Inspect given appsec-rule(s)
Synopsis
Inspect the state of one or more appsec-rules
cscli appsec-rules inspect [item]... [flags]
Examples
# Display metadata, state, metrics and ancestor collections of appsec-rules (installed or not).
cscli appsec-rules inspect crowdsecurity/crs
# Don't collect metrics (avoid error if crowdsec is not running).
cscli appsec-configs inspect crowdsecurity/crs --no-metrics
# Display difference between a tainted item and the latest one.
cscli appsec-rules inspect crowdsecurity/crs --diff
# Reverse the above diff
cscli appsec-rules inspect crowdsecurity/crs --diff --rev
Options
--diff Show diff with latest version (for tainted items)
-h, --help help for inspect
--no-metrics Don't show metrics (when cscli.output=human)
--rev Reverse diff output
-u, --url string Prometheus url
Options inherited from parent commands
--color string Output color: yes, no, auto (default "auto")
-c, --config string path to crowdsec config file (default "/etc/crowdsec/config.yaml")
--debug Set logging to debug
--error Set logging to error
--info Set logging to info
-o, --output string Output format: human, json, raw
--trace Set logging to trace
--warning Set logging to warning
SEE ALSO
- cscli appsec-rules - Manage hub appsec-rules