Session lost after log file rotation

Hi,

I have recently upgraded from Kibana 7.10.0 to 7.12.1 and since then I'm observing an issue where all user sessions are getting lost after a logfile rotation.

My current logging settings are:

logging.dest: "/var/log/kibana/kibana.log"
logging.rotate.enabled: true
logging.quiet: true
logging.verbose: false

My session settings are:

xpack.security.session.idleTimeout: "7d"
xpack.security.session.lifespan: "1Y"

The last log lines in the kibana.log (before rotation) look like this:

{"type":"log","@timestamp":"2021-05-18T12:47:20+02:00","tags":["info","cli","config"],"pid":440,"message":"Reloading logging configuration due to SIGHUP."}
{"type":"log","@timestamp":"2021-05-18T12:47:20+02:00","tags":["info","config"],"pid":440,"message":"New logging configuration:\n{\n "ops": {\n "interval": 5000\n },\n "logging": {\n "dest": "/var/log/kibana/kibana.log",\n "rotate": {\n "enabled": true,\n "everyBytes": 10485760,\n "keepFiles": 7,\n "pollingInterval": 10000,\n "usePolling": false\n },\n "verbose": false,\n "silent": false,\n "quiet": false,\n "events": {},\n "filter": {},\n "json": true\n }\n}"}

The timestamp of the last log rotation matches exacly with (multiple) users complaining that there working session gets lost.

Is this a known issue? Or can I submit it on github?

Tnx, Harm

Hello,

I did find an open issue - Kibana logs and Kibana pid configuration settings seem to be ignored in 7.11 · Issue #91885 · elastic/kibana · GitHub
Do you want add your details here?

Thanks
Bhavya

Sure I will add it. I don't see them mentioning session issues during log file rotations, but the issues could be introduced by updates in the same logging mechanism...