Answers: <blockquote>
  <p>Log event size : 256 KB (maximum). This quota can't be changed.</p>
  </blockquote>
  <p><a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html</a></p>
  
Answers: CC BY-SA 4.0
Answers: 2023-12-12T09:28:45.047Z
Answers: 2023-12-12T09:28:45.047Z
Answers: Manticore
Body: <p>I have faced a situation when some of the logs don't gather by awslogs driver.</p>
  <p>Awslogs driver with mode = <strong>non-blocking</strong> and maximum buffer size = <strong>25mb</strong> (I have experimented with these values by looking at <a href="https://github.com/moby/moby/issues/45999" rel="nofollow noreferrer">https://github.com/moby/moby/issues/45999</a>). My logs' throughput even don't have rate &gt;25mb/s, but I lose logs when payload size is &gt;0.25MB (this isn't a concrete number, but sounds true). I don't understand why this happens. In the code I have 5 log statements: &quot;args&quot;, &quot;built request&quot;, &quot;got response&quot; and &quot;successfully got available hotels&quot;, on the third one &quot;got response&quot; log payload body can be up to 1MB (but this statement is logging when payload body &lt;0.2 MB). What shall I suppose to do?</p>
  
Tags: <amazon-web-services><logging>
Title: AWS don't gather properly logs in non-blocking mode
UserDisplayName: Manticore
ThreadText: # AWS don't gather properly logs in non-blocking mode
  
  (Asked by: username_0 on 2023-12-11)
  
  I have faced a situation when some of the logs don't gather by awslogs driver.
  
  Awslogs driver with mode = **non-blocking** and maximum buffer size = **25mb** (I have experimented with these values by looking at <https://github.com/moby/moby/issues/45999>). My logs' throughput even don't have rate >25mb/s, but I lose logs when payload size is >0.25MB (this isn't a concrete number, but sounds true). I don't understand why this happens. In the code I have 5 log statements: "args", "built request", "got response" and "successfully got available hotels", on the third one "got response" log payload body can be up to 1MB (but this statement is logging when payload body <0.2 MB). What shall I suppose to do?
  
  **Tags:** amazon-web-services, logging
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-12-12. Score: 0 | Accepted answer
  
  > Log event size : 256 KB (maximum). This quota can't be changed.
  
  <https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/cloudwatch_limits_cwl.html>
  
  
  ---
  
  