Implementing Audit Logging?

Looking at several posts for audit logging of actual code blocks in a notebook it seems there is no solution for Jupyter Hub? Where would be the correct place to implement audit logging if I want to capture notebook interactions with the kernel? A wrapper kernel for the regular pyhon kernel?

If you’re talking about executing OS commands from within the notebook or terminal, I have looked into using auditd. It will log all system calls, but I never got it working properly in a docker container for some reason.

1 Like

Thx! I am more interested in logging python commands, e.g. querying a dataframe etc. It looks like it should be possible implementing a proxy for the incoming requests to the python kernel.