# Once in a while receiving "security\_exception" form opensearch using aiven kafka connector

**URL:** <https://forum.opensearch.org/t/once-in-a-while-receiving-security-exception-form-opensearch-using-aiven-kafka-connector/19652>\
**Category:** Security\
**Tags:** troubleshoot\
**Created:** [May 31, 2024, 9:57am UTC](https://forum.opensearch.org/t/once-in-a-while-receiving-security-exception-form-opensearch-using-aiven-kafka-connector/19652 "2024-05-31T09:57:00Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![javad](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@javad](https://forum.opensearch.org/u/javad)\
**Post date:** [June 5, 2024, 10:10pm UTC](https://forum.opensearch.org/t/once-in-a-while-receiving-security-exception-form-opensearch-using-aiven-kafka-connector/19652/3 "2024-06-05T22:10:10Z")

</div>

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](https://forum.opensearch.org/t/opensearch-console-log-for-docker/15787/5)

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:

> **[API rate limiting](https://opensearch.org/docs/latest/security/configuration/api-rate-limiting/)**
>
> API rate limiting

or  
circuit-breaker

---

_[View the full topic](https://forum.opensearch.org/t/once-in-a-while-receiving-security-exception-form-opensearch-using-aiven-kafka-connector/19652)._
