https://rancher.com/ logo
Title
b

best-address-42882

03/28/2023, 5:09 PM
hey, does anybody know how to enable audit log for rancher 2.7.0 docker installation? I mean for existing env.
b

best-address-42882

03/28/2023, 5:26 PM
@hundreds-evening-84071 this guide for new rancher instance, but how to enable it if rancher already running ?
h

hundreds-evening-84071

03/28/2023, 5:26 PM
did you install rancher with docker run command or helm?
b

best-address-42882

03/28/2023, 5:27 PM
docker run
h

hundreds-evening-84071

03/28/2023, 5:27 PM
if you have set persistent data then you should be able to stop existing docker container and restart it with
-e AUDIT_LEVEL=
b

best-address-42882

03/28/2023, 5:29 PM
using docker run again?
h

hundreds-evening-84071

03/28/2023, 5:31 PM
that's the idea but I have not done that myself so perhaps try it in your non-prod environment
b

best-address-42882

03/28/2023, 6:24 PM
@hundreds-evening-84071 it doesn't work
I guess that env specified somewhere in rancher yaml config files