For the complete documentation index, see llms.txt. This page is also available as Markdown.

📄Audit log format

Reference for P0 audit log fields, actions, and payload formats streamed to SIEM integrations.

P0 streams structured audit logs to your configured SIEM integration. This reference documents the log payload format, the complete action hierarchy, and example payloads for each action.

General fields

Every audit log event contains the following fields:

Field
Type
Description

vendor_account

string

Your P0 organization (tenant) identifier

data

object

Diff or data associated with the action

type

string

Event source: api, permission-requests, preapproval, or notifier

timestamp

string

ISO 8601 formatted timestamp (for example, 2025-01-17T18:15:11.458Z)

action

string

The specific audit action identifier

user_id

string

Identifier of the actor who performed the action (typically an email address)

user_type

string

Actor type: USER, API_KEY, or PUBLIC_ACCESS

token_id

string

Identifier of the API key used, when the actor is an API key (optional)

API events also include src_ip and user_agent fields when those values are available.

Example payload

Action hierarchy

P0 audit actions follow a hierarchical naming convention. The top-level prefix indicates the category of the action.

Access policy actions

These actions are logged when access policies are created, updated, or deleted. Access policies were formerly called routing rules.

Former action
Current action

admin.routing-rules.created

admin.policies.created

admin.routing-rules.updated

admin.policies.updated

admin.routing-rules.deleted

admin.policies.deleted

admin.policies.created

A new access policy was created. The data field has the difference between the old and new version of the access policies document.

admin.policies.updated

An access policy update occurred. The data field has the difference between the old and new version of the access policies document.

admin.policies.deleted

An access policy was deleted. The data field has the difference between the old and new version of the access policies document.

In access policy diff payloads, "+" indicates added values and "-" indicates removed values.

JIT configuration actions

These actions are logged when just-in-time access configuration settings are modified.

Approvable duration

admin.jit.approvable-duration.set

The approvable duration is updated. This controls how long access requests remain open before being automatically denied.

Expiry options

admin.jit.expiry-option.created

An expiry option was created.

admin.jit.expiry-option.deleted

An expiry option was deleted.

admin.jit.expiry-option.reset

Expiry options have been reset to defaults.

Role management actions

The system logs these actions when roles are added or removed from users or groups on the Settings page under the Access Control section.

P0 roles include: owner, iamViewer, and manager (approver). You can assign roles to individual users or to groups.

admin.roles.user.added

An admin has assigned a role to a user.

admin.roles.user.deleted

An admin removed a role from a user.

admin.roles.group.added

A role is assigned to a group by the system.

admin.roles.group.deleted

The system removes a role from a group.

Integration install actions

These actions are logged when integrations are installed, updated, or removed.

Terminology:

Term
Definition

Integration

A resource integration such as Google Cloud, AWS, Kubernetes, SSH, or Snowflake

Component

The type of integration capability (for example, IAM management, IAM assessment, Resource Explorer, HTTP Event Collector)

Item

An individual installation identifier (for example, a Google Cloud project ID or an AWS account ID)

admin.integration.installed

A new entry installs an integration component.

AWS integration example with federated login configuration:

admin.integration.removed

The system removed an installation entry from an integration component. This can apply to an entire integration or a specific item.

Component deletion:

Item deletion:

admin.integration.updated

An integration component is configured. For example, setting the account ID for an AWS integration before installing any of its components.

API key actions

These actions are logged when API keys for programmatic access to the P0 API are created or deleted.

admin.api-key.created

An API key has been created.

admin.api-key.deleted

An API key has been deleted.

Access bundle actions

These actions are logged when access bundles are created, updated, or deleted. The data field identifies the affected bundle by its id, and for create and update events also includes its label.

admin.bundles.created

A new access bundle was created.

admin.bundles.updated

An existing access bundle was updated.

admin.bundles.deleted

An access bundle was deleted.

Agentic client actions

These actions are logged when an agentic client is registered with the AI gateway. An agentic client is either a confidential client (client_credential_post) or a federated client (jwt_bearer).

Agentic client registration is in beta.

The data field describes the registered client. Which fields are present depends on the client type.

Field
Type
Description

id

string

Client identifier. For a confidential client, the client ID. For a federated client, the client subject, formatted federated/<providerId>/subject/<subject>.

registration

string

How the client was registered: manual when a P0 user registers it through the API, or automatic when a gateway registers it through dynamic registration.

status

string

Client lifecycle state: active or disabled.

type

string

Client type: client_credential_post (confidential client) or jwt_bearer (federated client).

hostname

string

Confidential clients only. Host that registered the client.

platform

string

Confidential clients only. Client platform: claude-code, claude-agents, or custom.

redirectUri

string

Confidential clients only. OAuth redirect URI registered for the client.

version

string

Confidential clients only. Client version.

issuer

string

Federated clients only. Trust authority issuer that validated the client.

providerId

string

Federated clients only. Federation provider that validated the client.

admin.agentic-client.created

An agentic client was registered. A manual registration is attributed to the P0 user in the user_id and user_type fields. An automatic registration is performed by a gateway on the token validation path, so it has no user actor.

Confidential client, manual registration:

Federated client, automatic registration through dynamic registration:

Permission request actions

These actions are logged when users create, approve, revoke, or deny permission requests through the P0 web application, CLI, or notifier integrations (Slack, Microsoft Teams).

For the approve, revoke, and deny events, the type field is notifier if the user takes the action via Slack or Microsoft Teams, or api if the user takes the action in the P0 web application.

api.jit.permission-requests.created

The system has received a request to create a new permission request.

api.jit.permission-requests.approved

The system has approved a permission request.

api.jit.permission-requests.denied

The system has denied a permission request.

api.jit.permission-requests.revoked

A call to revoke a permission request has been processed. The event records a successful call to the revoke endpoint of the Access requests API, and the request's own permission-requests.revoked or permission-requests.expired event says how the request ended.

api.jit.permission-requests.bulk-revoked

A single call to the Access requests API has been processed. This action is restricted to owners and API keys. data reports the call's target and outcome counts, not individual request IDs. The per-request events below carry those: permission-requests.revoked for a request the call revokes, and permission-requests.expired for one whose failed expiry it retries.

Permission request lifecycle

The following audit events are logged as P0 processes a permission request through its lifecycle. These are system-generated events that track internal state transitions.

permission-requests.created

A permission request has been created and is in the NEW state.

permission-requests.granted

A permission request has been granted and access has been provisioned.

permission-requests.denied

The system has denied the permission request.

permission-requests.revoked

A permission request has been revoked and access has been deprovisioned.

When a user revokes a request (through the web app, Slack, Microsoft Teams, email, or the bulk revocation endpoint of the Access requests API), the payload includes a revocationDetails object that identifies who revoked the request. This is distinct from the requestor (requestor) and the recipient of access (principal): a request that a user ends themselves is a relinquish, whereas a request that a different user ends is a revoke. Use revocationDetails.email to attribute the action to the user who performed it. When an API key calls the bulk revocation endpoint, revocationDetails.id is the key's ID, and name and email both hold the key's name.

Field
Type
Description

revocationDetails.id

string

Source ID of the user, or ID of the API key, that revoked the request or retried its failed expiry

revocationDetails.name

string

Display name of the user, or name of the API key. Optional, present when a name is available

revocationDetails.email

string

Email of the user, or name of the API key

revocationDetails.revokedTimestamp

number

Time (epoch milliseconds) of the revoke or retry

revocationDetails.revocationSource

string

Where the revoke or retry originated: webapp, slack, msTeams, email, or api (the bulk revocation endpoint)

Note: revocationDetails is present only for requests revoked after this attribution was introduced. Older revoked requests don't include it. An expired request includes it only when someone retried its failed expiry, as described under permission-requests.expired.

permission-requests.expired

A permission request has expired and access has been automatically deprovisioned.

If P0 can't remove access when a request expires, the request shows an error and the access stays in place until someone retries the removal, with Retry revoke on the request's page in the web app or through the Access requests API. A successful retry completes the expiry, and its permission-requests.expired event includes a revocationDetails object that identifies who retried it, with the same fields as on permission-requests.revoked.

Pre-approval lifecycle actions

These actions are logged when pre-approvals are created or revoked.

api.jit.preapproval.created

A new pre-approval was created.

api.jit.preapproval.revoked

An existing pre-approval has been manually revoked.

SSH session actions

These actions are logged when a user starts or ends an SSH session opened through the P0 CLI. The data field identifies the permission request that authorized the session (requestId), the session (sshSessionId), the acting user, and the granted permission. For sessions that go through an Azure bastion, the data field also includes the bastion session identifiers.

ssh.session.start

A user started an SSH session.

ssh.session.end

A user's SSH session ended.

File transfer actions

These actions are logged when a user transfers files to or from an instance using the P0 CLI. P0 stages transferred files in an intermediary bucket, so a single transfer can emit an upload, a download, and an object-delete event. The data field identifies the authorizing permission request (requestId), the transfer (fileTransferId), the staging bucket (bucketName), the target instance (instanceId), and the outcome of the operation (success or failure).

file-transfer.upload

A file was uploaded to the staging bucket.

file-transfer.download

A file was downloaded from the staging bucket to the target instance.

file-transfer.object-delete

P0 deleted the transferred object from the staging bucket after a successful download.

Authentication and authorization actions

These actions are logged when P0 receives invalid authentication or authorization requests.

auth.authentication.failed

A call to the API lacked a valid access token.

auth.authorization.failed

A call to the API had a valid access token but attempted an action the user lacked permissions for.

Last updated