title: Cloudwatch Agent errors with: No option 'file' in section: 'loggers'
body: <p>I am trying to tune the log levels of the various loggers in the Cloudwatch Logs Agent, and according to the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AgentReference.html" rel="nofollow noreferrer">official AWS reference docs</a>, it states that I should be able to add the following to /var/awslogs/etc/awslogs.conf, in order to achieve that: </p>
  
  <pre><code>[loggers]
  keys=root,cwlogs,reader,publisher
  
  [handlers]
  keys=consoleHandler
  
  [formatters]
  keys=simpleFormatter
  
  [logger_root]
  level=INFO
  handlers=consoleHandler
  
  [logger_cwlogs]
  level=INFO
  handlers=consoleHandler
  qualname=cwlogs.push
  propagate=0
  
  [logger_reader]
  level=WARNING
  handlers=consoleHandler
  qualname=cwlogs.push.reader
  propagate=0
  
  [logger_publisher]
  level=WARNING
  handlers=consoleHandler
  qualname=cwlogs.push.publisher
  propagate=0
  
  [handler_consoleHandler]
  class=logging.StreamHandler
  level=INFO
  formatter=simpleFormatter
  args=(sys.stderr,)
  
  [formatter_simpleFormatter]
  format=%(asctime)s - %(name)s - %(levelname)s - %(process)d - %(threadName)s - %(message)s
  </code></pre>
  
  <p>When I do add it, logs forwarding stops and I see a relevant entry in <code>/var/log/awslogs.log</code>: </p>
  
  <p><code>No option 'file' in section: 'loggers'</code></p>
  
  <p>Removing the whole section resumes logging, but - obviously - no log levels have been tuned. </p>
  
  <p>Any ideas what I might be doing wrong?</p>