How Can I Activate the Traffic Log?

Mari Yamaguchi
2021-09-02 22:37

Subject 

Enabling the traffic log in Artifactory provides the user with in detailed information regarding site traffic and file sizes. The traffic log format and parsing enables the user to compare the total upload at the source and destination for each repo. 

Resolution 

After performing the below action (artifactory.system.properties file modification), this requires a restart of Artifactory).

1. Add the following property into the artifactory.system.properties file.​

artifactory.traffic.collectionActive=true

2. Enable the following logger in the logback.xml file. 

<logger name="org.artifactory.traffic.TrafficLogger" additivity="false">
       <level value="info"/>
       <appender-ref ref="TRAFFIC"/>
  </logger>