circleci policy logs

Get policy decision logs / Get decision log (or policy bundle) by decision ID

Synopsis

Get policy decision logs / Get decision log (or policy bundle) by decision ID

circleci policy logs [decision_id] [flags]

Examples

circleci policy logs --owner-id 462d67f8-b232-4da4-a7de-0c86dd667d3f --after 2022/03/14 --out output.json

Flags

      --after string        filter decision logs triggered AFTER this datetime
      --before string       filter decision logs triggered BEFORE this datetime
      --branch string       filter decision logs based on branch name
      --context string      policy context (default "config")
  -h, --help                help for logs
      --out string          specify output file name 
      --owner-id string     the id of the policy's owner
      --policy-bundle       get only the policy bundle for given decisionID
      --project-id string   filter decision logs based on project-id
      --status string       filter decision logs based on their status

Flags inherited from parent commands

      --host string              URL to your CircleCI host, also CIRCLECI_CLI_HOST (default "https://circleci.com")
      --policy-base-url string   base url for policy api (default "https://internal.circleci.com")
      --skip-update-check        Skip the check for updates check run before every command. (default true)
      --token string             your token for using CircleCI, also CIRCLECI_CLI_TOKEN

SEE ALSO