Cloud customer?
Start for Free >
Upgrade in MyJFrog >
What's New in Cloud >


Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


From version 5.9, Artifactory maintains an Audit Trail Log which registers all operations related to users, groups and permissions to allow auditing and tracking capabilities that allow you to enforce security policies in your organization. Operations that will be registered in the log include:

  • Creation, update and deletion of users
  • Creation, update and deletion of groups
  • Creation, update and deletion of permission targets
  • Creation, update and deletion of access tokens

The Audit Trail Log is located under $ACCESS$JFROG_HOME/logs/security.audit.log (the default location for this will be $ARTIFACTORY_HOME/access/logs/security.artifactory/var/log/access-security-audit.log).

titlePage Contents


Table of Contents

Enabling and Disabling 

Logging audit trail events is enabled by default. It can be disabled and re-enabled using the following REST API endpoint:

titleThis is a REST API endpoint of the Access Service

 Enabling or disabling the audit trail log is a feature of the Access Service. Therefore, this call is to the Access Service whose default port is 8040.

Audit Trail Logging

Description: Enables or disables Audit Trail Logging
Since: 5.9.0
Security: Requires a user with Admin privileges to the Access service
Usage: PATCH /api/v1/config
Consumes: application/json

Code Block
PATCH /api/v1/config
 "config" : "---\nsecurity:\n  audit:\n    enabled: <true | false>\n"

Sample usage showing how to disable Audit Trail Logging:

Code Block
curl -H "Content-Type:application/json" -X PATCH -u access-admin:password http://localhost:8040/access/api/v1/config -d '{"config" : "---\nsecurity:\n  audit:\n    enabled: false\n"}'


Log File Format

An entry in the Audit Trail Log has the following format:

Code Block
Date | User IP | User | Logged Principal | Entity Name | Event Type | Event | Data Changed



A date and time stamp for the log entry formatted:


User IP
The IP address of the user that performed the operation in Artifactory
The username of the user that performed the operation in Artifactory
Logged Principal
The login information of the Artifactory service that performed the operation against Access
Entity Name
The security entity that the operation modified. For example, permission target name, group name, username etc.
Event Type
The type of operation performed where: C = Create, U = Update, D = Delete
The security entity on which the operation was performed where: USR = user, GRP = Group, PRM = Permission, TKN = Token
Data Changed

A JSON describing the data that was changed

The following describes a map that specifies permissions when creating or updating a permission target:

r = Read
t = Annotate
w = Deploy/Cache
d = Delete/Overwrite
m = Manage

Example 1

An admin user named admin created a user named bob and added him to 3 groups named: dev-team, code-reviewers, rnd-team-leaders.

Code Block
      "":"UserGroupImpl(name=dev-team, realm=internal)",
      "groups.code-reviewers":"UserGroupImpl(name=code-reviewers, realm=internal)",
      "groups.rnd-team-leaders":"UserGroupImpl(name=rnd-team-leaders, realm=internal)",

Example 2

An admin user named devops-admin added a user named dylan to a permission target named nodejs-developers with read, annotate, deploy and delete permissions.

Code Block


Managing Log File Size

The Audit Trail Log size is managed as a series of a files which are configured with a maximal size. By default, this log is limited to a size of 1GB split into 10 files each of which is up to 100MB in size. 

To change the number of files or their maximal size, change the following tags of the SECURITY.AUDIT log appender in $ARTIFACTORY$JFROG_HOME/accessartifactory/var/etc/access/logback.xml:

Maximum number of files: <maxIndex>

Maximum size of each file: <MaxFileSize>  


Copyright © 2021 JFrog Ltd.