crowdsec/cmd/crowdsec-cli/doc/cscli_ban_list.md
Thibault bui Koechlin 4d306fc52b doc
2020-05-15 14:33:01 +02:00

1.3 KiB

cscli ban list

List local or api bans/remediations

Synopsis

List the bans, by default only local decisions.

If --all/-a is specified, api-provided bans will be displayed too.

Time can be specified with --at and support a variety of date formats:

  • Jan 2 15:04:05
  • Mon Jan 02 15:04:05.000000 2006
  • 2006-01-02T15:04:05Z07:00
  • 2006/01/02
  • 2006/01/02 15:04
  • 2006-01-02
  • 2006-01-02 15:04
cscli ban list [flags]

Options

  -a, --all         List as well bans received from API
      --at string   List bans at given time
  -h, --help        help for list

Options inherited from parent commands

  -c, --config-dir string    Configuration directory to use. (default "/etc/crowdsec/cscli/")
      --db string            Set path to SQLite DB.
      --debug                Set logging to debug.
      --error                Set logging to error.
      --info                 Set logging to info.
  -o, --output string        Output format : human, json, raw. (default "human")
      --remediation string   Set specific remediation type : ban|slow|captcha (default "ban")
      --warning              Set logging to warning.

SEE ALSO

Auto generated by spf13/cobra on 15-May-2020