Datalore Help

User activity logging

User activity logging is an Enterprise-only feature that allows you to log cell executions. Below is an example of logged user actions:

$ tail -f /tmp/datalore.log
13:31:48.864 User 9whJDwPLUHUkvhd7hTwLTS is going to execute cell in input 9whJDwPLUHUkvhd7hTwLTS/tafG1aJIZrud2Oygez4N5z: print(42) 13:32:13.869 User 9whJDwPLUHUkvhd7hTwLTS is going to execute cell in input 9whJDwPLUHUkvhd7hTwLTS/tafG1aJIZrud2Oygez4N5z: import numpy print(numpy.__version__)

Enable logging

  1. Open the logback.xml config file.

  2. Choose a logback core appender and specify your logger configuration in place of <logger name="audit" level="OFF"/> as shown in the example below.

    <appender name="AUDIT" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>/tmp/datalore/datalore.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>datalore.%d{yyyy-MM-dd}.log</fileNamePattern> <maxHistory>30</maxHistory> <totalSizeCap>300GB</totalSizeCap> </rollingPolicy> <encoder> <pattern>%d{HH:mm:ss.SSS} %msg%n</pattern> </encoder> </appender> <logger name="audit" level="ALL" additivity="false"> <appender-ref ref="AUDIT"/> </logger>
Last modified: 09 September 2022