ByteChef LogoByteChef
Settings
Enterprise Edition

Audit Events

The audit log of privileged actions (who did what, and when), with filtering, per-event data, and configurable retention.

Settings → Audit Events records privileged actions across the platform. Recording is off by default: set bytechef.audit.enabled (environment variable BYTECHEF_AUDIT_ENABLED) to true and restart the server to turn it on. While it is off, the page shows Audit events are disabled with these instructions. When it is on, recording is automatic: there is no per-resource opt-in, and users cannot suppress an entry. The page requires the ADMIN authority and is Enterprise Edition.


Finding an event

The Search box on the right of the page header matches events whose principal or any recorded event data value contains the text you type, ignoring case, e.g. admin or createProject. It applies shortly after you stop typing, surrounding spaces are ignored, and %, _ and \ are matched literally. When principals are masked, Search matches event data values only.

The filter button next to it opens the Filter Audit Events menu. The button is highlighted while any menu filter is active.

Menu groupWhat it does
Event typeRestrict to one event type; All clears it. A check mark shows the active choice.
PlatformAll, Automation, or Embedded. Entries without a platform appear only under All.
DateAll time, Last 24 hours, Last 7 days, Last 30 days, or Custom range. The presets count back from the moment you pick them. Custom range opens a small panel with From and To date pickers; a range starts at the beginning of the From day and ends at the end of the To day, in your local time.

Clear all filters at the bottom of the menu resets the menu filters and leaves the search text as it is. It is disabled when no menu filter is active.

Each active menu filter appears as a chip above the table, e.g. Event type: JOB_FAILED, Platform: Embedded, Last 7 days, or From: / To: for a custom range. Click the × on a chip to remove that filter, or Clear all to remove every menu filter. The search text has no chip; clear the Search box to remove it. Changing the search or a filter always returns to the first page of results. A failed sign-in is recorded under the name that was typed, so searching that name finds it. With no matches the table reads "No audit events match the current filters."

The results table lists Date, Principal, Platform (Automation, Embedded, or a dash when the entry has none), Event Type, and Result (SUCCESS, ALLOWED, DENIED, ERROR, or ROLLED_BACK; see Permission checks). Clicking a row opens the Audit Event Details panel, showing the event type with its timestamp, the Principal, the Platform, the Result, the Event ID, and the event's recorded Data as key/value pairs. When results span multiple pages, Previous / Next page through them.

What an entry contains

Each entry contains:

  • Event ID - the entry's identifier.
  • Principal - the acting user's login.
  • Platform - Automation or Embedded, the side of the product the action belongs to. API key events take it from the key's own type, job events from the job's owner, and other actions from the area of the product that performed them. Sign-in events, platform-wide actions, and entries recorded before the platform was tracked have none.
  • Result - SUCCESS, ALLOWED, DENIED, ERROR, or ROLLED_BACK.
  • Event type - the action, for example PROJECT_PUBLISHED, CONNECTION_DELETED. The full set is catalogued below.
  • Event date - when it happened.
  • Data - a string-to-string map of whatever the emitting site chose to record, typically the affected resource's id and name. Null values are dropped rather than stored. A value an operation declares that is longer than 256 characters keeps its beginning and ends in ...; values recorded by sign-ins and CREDENTIAL_USED are cut at 256 characters without the marker. When a value cannot be computed, the entry is still written without it: dataError lists the keys that failed, or holds the exception class when none of the values could be evaluated. A failure in the event's mapper is recorded under mapperError as the exception class, or as NULL_DATA when the mapper returned nothing. When the state before the change could not be read, captureError holds the exception class and the entry is written even if the event would otherwise have been skipped.

Search matches the principal and the values in the Data map.

Event types

The Event type group of the filter menu is populated from the events your instance has actually recorded. The full set the platform can emit:

AreaEvent types
UsersUSER_INVITED, USER_ROLE_UPDATED, USER_DELETED
Identity providersIDENTITY_PROVIDER_CREATED, IDENTITY_PROVIDER_UPDATED, IDENTITY_PROVIDER_DELETED
OAuth2 clientsOAUTH2_CLIENT_DELETED, OAUTH2_CLIENT_GRANT_REVOKED, OAUTH2_CLIENT_ALL_GRANTS_REVOKED - deleting a client that does not exist is not recorded
SCIM provisioningSCIM_USER_CREATED, SCIM_USER_UPDATED, SCIM_USER_PATCHED, SCIM_USER_DEACTIVATED, SCIM_USER_DELETED, SCIM_GROUP_CREATED, SCIM_GROUP_UPDATED, SCIM_GROUP_DELETED - recorded under the scim:<identity provider name> (<identity provider id>) principal; a PUT or PATCH that deactivates an active user is recorded once, as SCIM_USER_DEACTIVATED
WorkspacesWORKSPACE_CREATED, WORKSPACE_UPDATED, WORKSPACE_DELETED
Workspace membershipWORKSPACE_USER_ADDED, WORKSPACE_USER_REMOVED, WORKSPACE_USER_ROLE_UPDATED
ProjectsPROJECT_CREATED, PROJECT_UPDATED, PROJECT_DELETED, PROJECT_PUBLISHED, PROJECT_VERSION_DELETED, PROJECT_EXPORTED, PROJECT_SHARED_EXPORTED, PROJECT_IMPORTED, PROJECT_TEMPLATE_IMPORTED, PROJECT_DUPLICATED, PROJECT_SHARED_DELETED, PROJECT_VERSION_RESTORED - publishing records the new project version; a duplicate records the source and the new project
WorkflowsWORKFLOW_CREATED, WORKFLOW_DELETED, WORKFLOW_DUPLICATED, WORKFLOW_VERSION_RESTORED, INTEGRATION_WORKFLOW_CREATED, INTEGRATION_WORKFLOW_DELETED, AUTOMATION_PERMISSION_EXPRESSION_UPDATED, INTEGRATION_WORKFLOW_PERMISSION_EXPRESSION_UPDATED - AUTOMATION_PERMISSION_EXPRESSION_UPDATED covers the workflows of embedded automation projects; edits to a workflow definition are not recorded one by one; publishing the project or integration records the result
DeploymentsDEPLOYMENT_CREATED, DEPLOYMENT_UPDATED, DEPLOYMENT_ENABLED_UPDATED, DEPLOYMENT_WORKFLOW_ENABLED_UPDATED, DEPLOYMENT_WORKFLOW_RUN, DEPLOYMENT_DELETED - enabling or disabling records enabled as true or false; running a workflow by hand records who ran it and the jobId
Approval tasksAPPROVAL_TASK_CREATED, APPROVAL_TASK_UPDATED, APPROVAL_TASK_DELETED - tasks an admin manages on the Approval Tasks page; tasks a workflow run opens and the runtime resolves are not recorded
AI agent memoriesAI_AUTO_MEMORY_UPDATED, AI_AUTO_MEMORY_DELETED - a user editing or deleting an agent memory; the entry holds the memory's id, workspace and environment, plus principalType and principalId when the request names whose memory it is (without them it is the caller's own); the memory text is never recorded, and memories an agent writes while it runs are not recorded
ConnectionsCONNECTION_DISCONNECTED, CONNECTION_CREDENTIALS_UPDATED - automation connections; CONNECTION_CREDENTIALS_UPDATED holds the connection id only, never the credentials
Connections (embedded)CONNECTION_CREATED, CONNECTION_UPDATED, CONNECTION_REAUTHORIZED, CONNECTION_CREDENTIALS_UPDATED, CONNECTION_DELETED - connections managed through the embedded admin and connected-user APIs; CONNECTION_CREDENTIALS_UPDATED holds the connection id, and the connected user id when an admin replaces the credentials of a connection provisioned for a connected user, never the credentials
API keysAPI_KEY_CREATED, API_KEY_DELETED, WORKSPACE_API_KEY_CREATED, WORKSPACE_API_KEY_DELETED
NotificationsNOTIFICATION_CREATED, NOTIFICATION_UPDATED, NOTIFICATION_DELETED, NOTIFICATION_TESTED, NOTIFICATION_SIGNING_SECRET_REGENERATED - the entry holds the notification id (and name and type, except for the signing secret regeneration, which holds only the id, and the test, which holds the id and type); notification settings are never recorded
Signing keys (embedded)SIGNING_KEY_CREATED, SIGNING_KEY_UPDATED, SIGNING_KEY_DELETED
Connected users (embedded)CONNECTED_USER_CREATED, CONNECTED_USER_UPDATED, CONNECTED_USER_ENABLED_UPDATED, CONNECTED_USER_DELETED, CONNECTED_USERS_IMPORTED - an import records how many users were created, skipped and rejected
AI providersAI_PROVIDER_UPDATED, AI_PROVIDER_DELETED - the provider's API key is never recorded, and its URL is recorded without user info, query or fragment
Custom componentsCUSTOM_COMPONENT_SAVED, CUSTOM_COMPONENT_CREATED, CUSTOM_COMPONENT_PUBLISHED, CUSTOM_COMPONENT_ENABLED_UPDATED, CUSTOM_COMPONENT_DELETED - CUSTOM_COMPONENT_SAVED is an uploaded component, created or replaced, with its id, name, version and language; CUSTOM_COMPONENT_CREATED is a new draft started from the starter template, with the same fields; publishing a draft records its id, name and version; enabling or disabling records enabled as true or false; edits to a draft's source in the editor are not recorded one by one, publishing the draft records the result
Data tablesDATA_TABLE_CREATED, DATA_TABLE_DUPLICATED, DATA_TABLE_RENAMED, DATA_TABLE_DELETED, DATA_TABLE_COLUMN_ADDED, DATA_TABLE_COLUMN_RENAMED, DATA_TABLE_COLUMN_REMOVED - changes to a table's structure; deleting a table that does not exist is not recorded; rows are data and are not recorded
Knowledge basesKB_CREATED, KB_CLONED, KB_UPDATED, KB_DELETED, KB_DOCUMENT_CREATED, KB_DOCUMENT_DELETED - the workspace is recorded on KB_CREATED and KB_CLONED
API collectionsAPI_COLLECTION_CREATED, API_COLLECTION_DELETED
MCPMCP_SERVER_CREATED, MCP_SERVER_UPDATED, MCP_SERVER_DELETED, MCP_SERVER_SECRET_KEY_ROTATED, MCP_COMPONENT_CREATED, MCP_COMPONENT_UPDATED, MCP_COMPONENT_DELETED, MCP_TOOL_CREATED, MCP_TOOL_UPDATED, MCP_TOOL_ENABLED_UPDATED, MCP_TOOL_DELETED, MCP_PROJECT_CREATED, MCP_PROJECT_UPDATED, MCP_PROJECT_CLONED, MCP_PROJECT_DELETED, MCP_PROJECT_WORKFLOW_CREATED, MCP_PROJECT_WORKFLOW_ENABLED_UPDATED, MCP_PROJECT_WORKFLOW_DELETED, MANAGEMENT_MCP_SERVER_SECRET_KEY_ROTATED - the secret key itself is never recorded; a tool is recorded by id and name, never by its parameter values
A2AA2A_SERVER_CREATED, A2A_SERVER_UPDATED, A2A_SERVER_DELETED, A2A_PROJECT_CREATED, A2A_PROJECT_UPDATED, A2A_PROJECT_DELETED, A2A_PROJECT_WORKFLOW_ENABLED_UPDATED
Integrations (embedded)INTEGRATION_CREATED, INTEGRATION_UPDATED, INTEGRATION_DELETED, INTEGRATION_PUBLISHED, INTEGRATION_VERSION_RESTORED, INTEGRATION_INSTANCE_CONFIGURATION_CREATED, INTEGRATION_INSTANCE_CONFIGURATION_UPDATED, INTEGRATION_INSTANCE_CONFIGURATION_CREDENTIALS_UPDATED, INTEGRATION_INSTANCE_CONFIGURATION_ENABLED_UPDATED, INTEGRATION_INSTANCE_CONFIGURATION_WORKFLOW_ENABLED_UPDATED, INTEGRATION_INSTANCE_CONFIGURATION_WORKFLOW_RUN, INTEGRATION_INSTANCE_CONFIGURATION_DELETED, INTEGRATION_INSTANCE_CONFIGURATION_CONNECTED_USERS_MOVED, INTEGRATION_INSTANCE_CONFIGURATION_CONNECTED_USERS_UPGRADED, INTEGRATION_INSTANCE_CONFIGURATION_CONNECTED_USER_VERSION_CHANGED, INTEGRATION_INSTANCE_PROVISIONED, INTEGRATION_INSTANCE_CREDENTIALS_UPDATED, INTEGRATION_INSTANCE_CONNECTION_UPDATED, INTEGRATION_INSTANCE_ENABLED_UPDATED, INTEGRATION_INSTANCE_WORKFLOW_ENABLED_UPDATED, INTEGRATION_INSTANCE_DELETED - publishing records the new integration version; restoring records the integration version applied to the draft; running a workflow by hand records who ran it and the jobId; INTEGRATION_INSTANCE_* events concern one connected user's instance; INTEGRATION_INSTANCE_CREDENTIALS_UPDATED holds the instance, connection and connected user ids only, never the credentials; INTEGRATION_INSTANCE_CONNECTION_UPDATED records the instance and the connection an admin switched it to; INTEGRATION_INSTANCE_CONFIGURATION_CREDENTIALS_UPDATED holds the configuration id only and covers the new shared credentials being copied to the connections of every instance on that configuration; a move records the source and target configurations and the connected users the admin selected; an upgrade records the target configuration and the connected users the admin selected; a version change records the source configuration, the connected user, the requested version, the configuration the user landed on (null when the user was not moved) and the moved connected users
Automation projects (embedded)AUTOMATION_PROJECT_CREATED, AUTOMATION_PROJECT_UPDATED, AUTOMATION_PROJECT_DUPLICATED, AUTOMATION_PROJECT_PUBLISHED, AUTOMATION_PROJECT_VERSION_RESTORED, AUTOMATION_PROJECT_DELETED, AUTOMATION_CREATED, AUTOMATION_DUPLICATED, AUTOMATION_DELETED, AUTOMATION_PROJECT_CONFIGURATION_CREATED, AUTOMATION_PROJECT_CONFIGURATION_UPDATED, AUTOMATION_PROJECT_CONFIGURATION_ENABLED_UPDATED, AUTOMATION_PROJECT_CONFIGURATION_WORKFLOW_ENABLED_UPDATED, AUTOMATION_PROJECT_CONFIGURATION_DELETED, AUTOMATION_PROJECT_CONFIGURATION_CONNECTED_USERS_MOVED, AUTOMATION_PROJECT_CONFIGURATION_CONNECTED_USERS_UPGRADED, AUTOMATION_PROJECT_CONFIGURATION_CONNECTED_USER_VERSION_CHANGED, CONNECTED_USER_PROJECT_CONFIGURATION_ENABLED_UPDATED, CONNECTED_USER_PROJECT_WORKFLOWS_PROVISIONED, CONNECTED_USER_PROJECT_WORKFLOW_ENABLED_UPDATED, CONNECTED_USER_PROJECT_WORKFLOW_DELETED - publishing records the new project version; a configuration pins a published project version to an environment; a move records the source and target configurations and the connected users the admin selected; an upgrade records the target configuration and the connected users the admin selected; a version change records the source configuration, the connected user, the requested version, the configuration the user landed on (null when the user was not moved) and the moved connected users; CONNECTED_USER_PROJECT_CONFIGURATION_ENABLED_UPDATED records the connected user, the project and whether the configuration was turned on or off for that user
MCP servers (embedded)MCP_INTEGRATION_INSTANCE_CONFIGURATION_CREATED, MCP_INTEGRATION_INSTANCE_CONFIGURATION_UPDATED, MCP_INTEGRATION_INSTANCE_CONFIGURATION_DELETED, MCP_INTEGRATION_INSTANCE_CONFIGURATION_WORKFLOW_CREATED, MCP_INTEGRATION_INSTANCE_CONFIGURATION_WORKFLOW_ENABLED_UPDATED, MCP_INTEGRATION_INSTANCE_CONFIGURATION_WORKFLOW_DELETED, MCP_INTEGRATION_INSTANCE_TOOL_ENABLED_UPDATED, MCP_INTEGRATION_INSTANCE_WORKFLOW_ENABLED_UPDATED, CONNECTED_USER_MCP_SERVER_PROVISIONED, CONNECTED_USER_MCP_SERVER_ENABLED_UPDATED, CONNECTED_USER_MCP_SERVER_DELETED, CONNECTED_USER_MCP_TOOL_ENABLED_UPDATED, CONNECTED_USER_MCP_WORKFLOW_ENABLED_UPDATED, MCP_AUTOMATION_PROJECT_CONFIGURATION_CREATED, MCP_AUTOMATION_PROJECT_CONFIGURATION_UPDATED, MCP_AUTOMATION_PROJECT_CONFIGURATION_DELETED, MCP_AUTOMATION_PROJECT_CONFIGURATION_WORKFLOW_ENABLED_UPDATED, MCP_AUTOMATION_PROJECT_CONFIGURATION_WORKFLOW_PARAMETERS_UPDATED, MCP_AUTOMATION_PROJECT_CONFIGURATION_WORKFLOW_DELETED, CONNECTED_USER_MCP_AUTOMATION_ENABLED_UPDATED, CONNECTED_USER_MCP_AUTOMATION_WORKFLOW_ENABLED_UPDATED - the MCP_AUTOMATION_PROJECT_CONFIGURATION_* events concern the automation configurations attached to a server; CONNECTED_USER_MCP_AUTOMATION_WORKFLOW_ENABLED_UPDATED is recorded when a connected user changes an automation's availability to AI agents through the public endpoint or the SDK; the selected workflows are recorded by id; removing a server the connected user does not have is not recorded
App events (embedded)APP_EVENT_CREATED, APP_EVENT_UPDATED, APP_EVENT_DELETED - deleting an app event that does not exist is not recorded
JobsJOB_CREATED, JOB_STARTED, JOB_COMPLETED, JOB_FAILED, JOB_STOPPED - recorded under the SYSTEM principal, with the job id in the data; who started a manual run is recorded by DEPLOYMENT_WORKFLOW_RUN or INTEGRATION_INSTANCE_CONFIGURATION_WORKFLOW_RUN with the same jobId
AuthenticationAUTHENTICATION_SUCCESS, AUTHENTICATION_FAILURE - a sign-in, or a rejected sign-in or credential; see Credential use
CredentialsCREDENTIAL_USED - a request authenticated with an API key, an embedded connected-user token, an MCP token or the system user's HTTP Basic credentials; see Credential use
Access checksPERMISSION_CHECK - a guarded call without an event type of its own that was denied or failed; see Permission checks

Credential use

API keys, embedded connected-user tokens, MCP tokens and the system user's HTTP Basic credentials on the protected actuator endpoints authenticate every request, so recording each one as a sign-in would bury the log. Instead, CREDENTIAL_USED is recorded the first time a credential is used and then at most once per bytechef.audit.credential-usage-interval (one hour by default) on each server instance. Each instance tracks up to 10,000 credentials; beyond that, a credential can be recorded again before its interval ends, and a use whose entry could not be written is recorded again on the next request. A credential is the combination of tenant, credential type, principal, environment, API key and connected user, so two API keys of the same user are tracked separately. The data holds credentialType (HttpBasic for the system user) and, where they apply, apiKeyId, connectedUserId and environmentId; an MCP server reached with an API key records that key's apiKeyId. Requests to an MCP server that does not require authentication carry no credential and are not recorded. Failed authentications are not throttled: each one is recorded as AUTHENTICATION_FAILURE. This includes an API key or token that cannot be read or matched to a credential, recorded under the [unresolved credential] principal with the caller's address, an API key sent to an MCP server of another tenant, recorded in the MCP server's tenant (the key is ignored, so a server that does not require authentication still answers), and an MCP token rejected for any reason, for example its scope, audience, revocation, an inactive user or a wrong MCP server key. A request to a disabled MCP server is answered without recording a failure. When a check itself fails, for example because the database is unavailable, the request is answered with 503 Service Unavailable and the reason says so instead of naming the token.

Permission checks

A guarded call that is denied or fails is recorded with DENIED or ERROR as its result: under its own event type when it has one, for example PROJECT_DELETED, and as PERMISSION_CHECK otherwise. Passed checks are not recorded as PERMISSION_CHECK: an operation with its own event type above is recorded with the result SUCCESS, carrying the affected resource, unless the call changed nothing, such as a SCIM request that matched no user or the deletion of a workspace API key that did not exist. A successful audited operation called from inside another audited operation is recorded with the result ROLLED_BACK when the transaction it ran in does not commit while the outer operation's entries are still saved, for example when it ran in a transaction of its own. Entries are saved inside the caller's transaction when there is one, so if that transaction rolls back, its entries roll back with it, whatever their result; the server logs an AUDIT PERSISTENCE FAILURE line instead. Set bytechef.audit.record-allowed-permission-checks to true to record passed checks on calls that change something as well; passed checks recorded this way have the result ALLOWED. Passed checks on reads are never recorded: calls whose method name starts with count, exists, fetch, find, get, has, is, list, load, read or search followed by an uppercase letter, or is exactly one of those words.

When an entry cannot be saved

A successful operation with its own event type, such as CONNECTION_CREATED or USER_DELETED, is not allowed to change anything without its entry. When it runs in a read-write transaction and its entry cannot be saved, for example because the database rejects the insert, the transaction is rolled back and the call fails with an error saying the audit event could not be recorded. When the operation runs inside a caller's transaction, the caller's transaction is rolled back as well.

The other entries are saved on a best-effort basis: if one cannot be saved, the operation still goes ahead and the server logs an AUDIT PERSISTENCE FAILURE line. This covers denied and failed attempts, PERMISSION_CHECK, operations that do not run in a read-write transaction, job and trigger events, sign-ins and CREDENTIAL_USED.

What is not logged

  • Secret values. The log records that a credential was created or deleted, by whom, and when. It never records the secret.
  • Workflow execution data. Execution inputs and outputs live in execution history, not in the audit log.
  • Fine-grained edits. Tag assignments, edits to a workflow definition, workflow input and connection values, the parameters of MCP project and embedded MCP workflows, A2A skills, and webhook trigger tests started from the workflow editor are not recorded. A denied or failed attempt is still recorded as PERMISSION_CHECK.

Retention

Audit entries persist in your operational database. A scheduled job deletes entries older than the retention window:

PropertyDefaultMeaning
bytechef.audit.retention-days365Age at which an entry is purged.
bytechef.audit.retention-cron0 0 2 * * *When the purge runs: daily at 02:00 server time.

A retention-days value of zero or less disables the purge. Retention is instance-wide, not per workspace.

Configuration

PropertyDefaultMeaning
bytechef.audit.enabledfalseRecord audit events. When off, nothing is written; entries recorded earlier are still listed through the API and purged by the retention job.
bytechef.audit.credential-usage-interval1hMinimum time between two CREDENTIAL_USED entries for the same credential. Zero or a negative value records every request.
bytechef.audit.record-allowed-permission-checksfalseAlso record passed permission checks on calls that change something.

Set them as environment variables on a self-hosted instance. For example, to turn recording on, keep entries for 90 days and record each credential at most once every 15 minutes:

BYTECHEF_AUDIT_ENABLED=true
BYTECHEF_AUDIT_RETENTION_DAYS=90
BYTECHEF_AUDIT_CREDENTIAL_USAGE_INTERVAL=15m

See Environment Variables for the full list.

Masking principals

Set bytechef.audit.mask-principals to true to mask principals when entries are read through the API, e.g. a***@example.com. The stored entries are unchanged. While masking is on, Search does not match principals at all, so it cannot be used to probe for logins; it matches event data values only.

How is this guide?

Last updated on

On this page