title: CloudWatch Agent: batch size equal to "1" - is it a bad idea?
body: <p>If I correctly understand, a CloudWatch Agent publishes events to CloudWatch by using a of kind of batching, the size of which is specified by <a href="http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html" rel="nofollow noreferrer">the two params</a>:</p>
  <pre><code>batch_count:
  </code></pre>
  <blockquote>
  <p>Specifies the max number of log events in a batch, up to 10000. The
  default value is 1000.</p>
  </blockquote>
  <pre><code>batch_size
  </code></pre>
  <blockquote>
  <p>Specifies the max size of log events in a batch, in bytes, up to
  1048576 bytes. The default value is 32768 bytes. This size is
  calculated as the sum of all event messages in UTF-8, plus 26 bytes
  for each log event.</p>
  </blockquote>
  <p>I guess, that in order to eliminate a possibility of loosing any log data in case of a EC2 instance termination, the <code>batch_count</code> should be equal to <code>1</code> (because in case of the instance termination all logs will be destroyed). Am I right that this is only one way to achieve it, and how this can affect the  performance? Will it have any noticeable side-effects?</p>