Once in a while receiving "security_exception" form opensearch using aiven kafka connector

I deployed OS with docker compose and this issue happens days ago, with docker as it is pointed out in the OS document and this page: Opensearch console log for docker - #5 by radu.gheorghe

I do not know how can I get logs on the file! inside container there is only these logs: PerformanceAnalyzer.log performance_analyzer_agent_stats.log.2024-05-24-1.gz
gc.log performance_analyzer_agent_stats.log.2024-05-25-1.gz
gc.log.00 performance_analyzer_agent_stats.log.2024-05-26-1.gz
gc.log.01 performance_analyzer_agent_stats.log.2024-05-27-1.gz
performance_analyzer_agent_stats.log

and I can see console log with this command:
sudo docker logs --timestamps os01 2>&1 | grep “$(date +%Y-%m-%d)T0[8]:”

Is there a way I can persist logs in file when using docker?

Do you think this exception can occur due to rate limit API call, e.g. this:

or
circuit-breaker