# Audit

Query centralized audit log

* [`sfp server audit`](#sfp-server-audit)

## `sfp server audit`

Query centralized audit log

```
USAGE
  $ sfp server audit [--json] [--repository <value>] [-e <value>] [-t <value>] [--sfp-server-url <value>]
    [--action <value>] [--actor <value>] [--limit <value>]

FLAGS
  -e, --email=<value>              Email address for authenticated user. Ignored if --application-token is provided. Can
                                   be set via SFP_SERVER_USER env var.
  -t, --application-token=<value>  Application token for CI/CD authentication. Can be set via SFP_SERVER_TOKEN env var
                                   (CLI flags take precedence over env vars).
      --action=<value>             Filter by action (e.g., "integration", "integration.created", "credentials.accessed")
      --actor=<value>              Filter by actor email
      --limit=<value>              [default: 50] Maximum number of audit entries (max: 1000)
      --repository=<value>         The repository identifier. E.g `owner/repo` for GitHub/GitLab or `org/project/repo`
                                   for Azure DevOps
      --sfp-server-url=<value>     URL of the SFP server. Can be set via SFP_SERVER_URL env var or config: sfp
                                   config:set server-url

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Query centralized audit log

EXAMPLES
  $ sfp server audit --action integration

  $ sfp server audit --action integration.created

  $ sfp server audit --action credentials.accessed --actor dev@flxbl.io

  $ sfp server audit --actor dev@flxbl.io --limit 100
```

*See code:* [*src/commands/server/audit.ts*](https://source.flxbl.io/flxbl/sfp-pro)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flxbl.io/flxbl/sfp/sfp-community/cli-reference-v51-release-v3/server/audit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
